A constant is any symbol that has been defined as such with the assignment
operator ::=. Note that since the check is made at
run-time, the constant is protected, even if the symbol name is evaluated at
run-time.
Example:
Gamma>CON ::= 5.4545454;5.4545454999999997663Gamma>CON = 7;Script error during command CON = 7; Assignment to constant symbol: CONGamma>
There are four pre-defined constants in Gamma:
PI | The value of pi, approximately
3.14159. |
E | The base of the natural logarithm, approximately
2.71828. |
INF | Floating point positive infinity. |
NAN | Floating point not-a-number. |
Please refer to Literals for more information on
INF and NAN.