Basics¶
Comments¶
Semicolon¶
A trailing semicolon evaluates but returns Null:
Set¶
Assign a value to a variable.
Print¶
Print values to the console.
Multiple arguments are concatenated:
Constants¶
Woxi ships with the most common mathematical constants
and atomic symbols from the Wolfram Language.
Each constant is a symbolic value that stays exact until you ask for
a numeric approximation with N.
Pi¶
The ratio of a circle's circumference to its diameter.
E¶
Euler's number, the base of the natural logarithm.
Degree¶
The angle unit Pi/180, used to convert from degrees to radians.
GoldenRatio¶
The golden ratio, (1 + Sqrt[5])/2.
Catalan¶
Catalan's constant, Sum[(-1)^k/(2k+1)^2, {k, 0, Infinity}].
EulerGamma¶
The Euler–Mascheroni constant.
Glaisher¶
The Glaisher–Kinkelin constant.
Khinchin¶
Khinchin's constant, the limit of the geometric mean of the continued-fraction coefficients of almost every real number.
Infinity¶
Represents a positive unbounded quantity.
Arithmetic with Infinity follows the usual conventions.
ComplexInfinity¶
A direction-less unbounded quantity, returned for example by 1/0.
Indeterminate¶
Represents an expression with no well-defined value, such as 0/0.
I¶
The imaginary unit, satisfying I^2 == -1.
Boolean Atoms¶
True and False¶
The two Boolean literals.
Null¶
The empty / absent value.
Expressions terminated by ; evaluate to Null.