Usage
import from Complex R
Parameter | Type | Description |
---|---|---|
R | ArithmeticType | Type to be extended |
Description
Complex R implements the algebraic extension of R generated by a root of . The coefficient type R must satisfy 2 additional mathematical properties for the arithmetic of Complex R to be correct, namely:
Exports
ArithmeticType CopyableType LinearCombinationType R coerce: R % Natural embedding complex: (R, R) % create a complex conjugate: % % conjugation conjugate!: % % in-place conjugation copy!: (%, R, R) % in-place copy imag: % R imaginary part real: % R real part
if R has FloatType then
/: (%, %) % Division
if R has InputType then
InputType
if R has OutputType then
OutputType
if R has SerializableType then
SerializableType