Syntax
Define scalar variable
scalar [define] scalar_name = exp
List contents of scalars
scalar { dir | list } [ _all | scalar_names ]
Drop specified scalars from memory
scalar drop { _all | scalar_names }
Description
scalar define defines the contents of the scalar variable scalar_name.
The expression may be either a numeric or a string expression.
scalar dir and scalar list both list the contents of scalars.
scalar drop eliminates scalars from memory.
Examples
. scalar a = 2
. scalar b = a+3
. scalar root2 = sqrt(2)
. scalar im = sqrt(-1)
. scalar x = .a
. scalar s1 = "hello world"
. scalar s2 = word(s1,1)
. scalar list
. scalar drop a b
. scalar drop _all