RiX walkthrough · 8e
Exact complex numbers
Divide by i, conjugate exact expressions, and inspect real and imaginary parts.
Construct complex values
The canonical imaginary generator is available from .Exact and .Complex:
Complex numbers are exact expressions in i, whose relation is i^2 + 1 = 0.
Division by complex expressions
Division uses algebraic inversion rather than floating approximation:
The results are -i and i.
Conjugation
Use the namespace operation or the receiver method:
Conjugating twice returns the original exact value.
Real and imaginary parts
Re and Im preserve exact coefficients, including other real generators:
The result is (pi, sqrt2), still exact.
Norm squared
Magnitude would require a square root. NormSquared avoids that decision:
Both entries are exactly 25. The next lesson introduces an exact magnitude through Cayley polar form. Arg remains deferred until RiX's real-number and trigonometric policies are ready.
Current boundary
RiX supports division in a single registered algebraic extension. A denominator mixing independent generators, or a multi-term transcendental denominator such as 1 + pi, is not automatically inverted.