|
SAVE VARIABLEName:
You can save variables and parameters. However, matrices and strings/functions are not currently supported. The RESTORE VARIABLE command is used to restore the variables saved by this command.
where <file-name> is the name of a file where the variables and parameters are saved; and <list-variables> is a list of parameters and variables. If no <file-name> is given, the file "dpsavf.tex" is used. If no variables are specifed, then all currently defined variables and parameters will be saved.
SAVE VARIABLES VARLIST.DAT SAVE VARIABLES VARLIST.DAT Y X1 X2 X3 X4
Y VARIABLE 3 0.1800000E+02 0.3800000E+02 0.1500000E+02 AVAL PARAMETER 0.1000000E+01For each name, the first line prints the variable/parameter name and also prints the type (VARIABLE or PARAMETER). If the name is a variable, the next line specifies the number of elements in the variable. The contents of the variable are then printed one element per line. If the name is a parameter, then the value of the parameter is printed on the next line. Variables and parameters are printed one at a time. Note:
As a further caution for Unix hosts, certain expansion characters (specifically ~ to refer to your home directory) are interpreted by the shell and are not recognized by the Fortran compiler. These expansion characters are interpreted as literal characters and do not yield the intended file name.
SKIP 25 READ BERGER1.DAT Y X BATCH SAVE VARIABLES Y X BATCH . LET Y = NORMAL RANDOM NUMBERS FOR I = 1 1 100 LET X = SEQUENCE 1 1 10 LET BATCH = 1 FOR I = 1 1 10 . RESTORE VARIABLES PRINT Y X BATCH
|
Privacy
Policy/Security Notice
NIST is an agency of the U.S.
Commerce Department.
Date created: 12/09/2020 |