Language reference
Literals and constants
Numbers, escaped strings, booleans, arrays, and named numeric constants.
01
Supported literals
- Finite and non-finite f64 results
- Complex values with i or j
- Boolean literals true and false
- Single- or double-quoted strings
- Real, logical, and complex 2D array literals, including []
02
Named constants
pi, Inf, NaN, eps, realmin, realmax, flintmax, intmin, intmax, i and j are recognized identifiers. Numeric constants use double precision; integer bounds do not introduce an integer array type. The name e is not predefined.
constants() lists runtime constants, including true and false. keywords() and builtins() expose the other runtime catalogs. The identifier catalog separates boolean literals from named numeric constants.
angle = pi / 2;
z = 1 + 2i;
disp(sin(angle));
disp(constants());