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


12.10.2 Numbers inversion

If the operand is zero: the following operations raise an exception.

Unsafe Operation: $inv-number num

Compute the inverse of any number object and return the result.

Unsafe Operation: $inv-fixnum fx

Compute the inverse of a fixnum and return the result as a fixnum or ratnum. A fixnum is returned if fx is +1 or -1.

Unsafe Operation: $inv-bignum bn

Compute the inverse of a bignum and return the result as a ratnum.

Unsafe Operation: $inv-flonum fl

Compute the inverse of a flonum and return the result as a flonum.

Unsafe Operation: $inv-ratnum rt

Compute the inverse of a ratnum and return the result as a fixnum, bignum or ratnum. A fixnum or bignum is returned when the numerator of rt is +1 or -1.

Unsafe Operation: $inv-compnum cn

Compute the inverse of a compnum and return the result as a compnum or cflonum.

Unsafe Operation: $inv-cflonum cfl

Compute the inverse of a cflonum and return the result as a cflonum.