Next: , Previous: , Up: syslib   [Index]


12.8 Low level compnum operations

The arguments cn to these operations must be compnums, the arguments num must be references to either fixnums, bignums or flonums. The following bindings are exported by the library (vicare system $compnums). iklib numerics for more functions acting on compnums.

Unsafe Operation: $make-compnum num1 num2

Allocate a new compnum memory block, store num1 as reference to the real part and num2 as reference to the imaginary part. Return a reference to the compnum.

Unsafe Operation: $make-rectangular rep imp

Return a real numebr, a new compnum or a new cflonum; rep and imp can be any combination of real numbers. If imp is exact zero: the returned value is rep, a real.

Unsafe Operation: $compnum-real cn

Return the reference to the real part.

Unsafe Operation: $compnum-imag cn

Return the reference to the imaginary part.

Unsafe Operation: $compnum->cflonum cn

Return the inexact representation of a compnum as a cflonum.