LibraryTools - Maple Programming Help

Home : Support : Online Help : System : Libraries and Packages : LibraryTools : LibraryTools/Save

LibraryTools

 Save
 save variables to a library

 Calling Sequence Save( name1, name2, ..., archive )

Parameters

 name1, name2, ... - name; Maple variables to save archive - (optional) string; Maple library

Description

 • The Save(  name1, name2,... ) calling sequence adds the variables name1, name2,... to a library.
 • If archive is specified, then the variables are added to the corresponding library.  If it is not specified, then they are saved to the library specified by savelibname.
 • If archive is a directory, Maple assumes the default library name, maple.mla.  Otherwise, archive specifies the path and library name.
 • The variables are added using the savelib command.  The indexname generated for a variable "namei" is "namei.m".  Indexnames are of type string.
 • If archive is not specified and savelibname does not specify a library, an error is generated.
 • If archive is specified but no corresponding library exists, it is automatically created.

Examples

 > $\mathrm{with}\left(\mathrm{LibraryTools}\right):$
 > $\mathrm{savelibname}≔\mathrm{cat}\left(\mathrm{kernelopts}\left(\mathrm{mapledir}\right),"/lib"\right)$
 > $a≔10:$
 > $\mathrm{Save}\left('a'\right)$
 > $b≔11:$
 > $c≔12:$
 > $\mathrm{Save}\left('b','c'\right)$
 > $d≔12:$
 > $e≔13:$
 > $\mathrm{LibLocation}≔\mathrm{cat}\left(\mathrm{kernelopts}\left(\mathrm{mapledir}\right),"/altlib"\right)$
 > $\mathrm{Save}\left('d','e',\mathrm{LibLocation}\right)$