Create - Maple Help

LibraryTools

 Create
 creates a new library in the pre-existing directory

 Calling Sequence Create( archive, size )

Parameters

 archive - string; Maple library size - integer (optional); the approximate number of members to be stored in the library

Description

 • The Create( archive, size) calling sequence creates a new library in the directory specified by archive.
 • If archive is a directory, maple.mla is created. Otherwise, the library specified by the path and library name in archive is created.
 • The optional size specifies the approximate number of members to be stored in the library. When size is not given, a library of size 100 is created. This size does not limit the number of members that can be stored in the library because the library automatically grows in size as needed.

Examples

 > $\mathrm{with}\left(\mathrm{LibraryTools}\right):$
 > $\mathrm{LibLocation}≔\mathrm{cat}\left(\mathrm{kernelopts}\left(\mathrm{mapledir}\right),"/lib/myLib.mla"\right)$
 > $\mathrm{Create}\left(\mathrm{LibLocation}\right)$
 > $a≔10$
 > $\mathrm{Save}\left('a',\mathrm{LibLocation}\right)$