UserManual

imaginary

The module `imaginary' provides complexnumbers. The functions provided are mainly corresponding to the `cmath' standard module.

Functions

exp(x [,err])

exp(x [,err]) is the exponential function. The default value for err is defaultError.

expi(x [,err])

expi(x [,err]) returns exp(i * x) where i is the imaginary unit and x must be a real number. The default value for err is defaultError.

log(x [,err])

log(x [,err]) returns the natural logarithm of x. There is one branch cut, from 0 along the negative real axis to -infinity, continuous from above. The default value for err is defaultError.

sin(z [,err])

cos(z [,err])

tan(z [,err])

sinh(z [,err])

cosh(z [,err])

tanh(z [,err])

atanh(z [,err])

sqrt(z [,err])

Classes

Constants

e
The base of the natural logarithm function. Same as real.e
pi
The circular constant. Same as real.pi
j
The imaginary unit.
theComplexField
ComplexField instance
defaultError
The default value for approximation limit.

Last-modified: 2005-12-18 (Æü) 17:36:39