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


12.10.9 Numbers squaring

To compute the square of any number just use square; to compute the square of a flonum use flsquare or $flsquare.

Unsafe Operation: $square-fixnum fx

Compute the square of a fixnum and return the result as fixnum or bignum.

Unsafe Operation: $square-bignum bn

Compute the square of a bignum and return the result as bignum.

Unsafe Operation: $square-ratnum rt

Compute the square of a ratnum and return the result as ratnum.

Unsafe Operation: $square-compnum cn

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

Unsafe Operation: $square-cflonum cfl

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