cyclone/docs/api/scheme/complex.md
Justin Ethier 0a7fb64741 Sync
2021-03-30 22:41:30 -04:00

869 B

layout title
main API

Complex Library

The (scheme complex) library exports procedures which are typically only useful with non-real numbers.

For more information see the R7RS Scheme Specification.

angle

(angle z)

imag-part

(imag-part x)

Return the imaginary part of complex number x.

magnitude

(magnitude z)

make-polar

(make-polar r phi)

Return a complex number corresponding to the given polar coordinate.

make-rectangular

(make-rectangular x y)

Create a complex number with real component x and imaginary component y.

real-part

(real-part x)

Return the real part of complex number x.