real, [imag=0], [prec=None]) |
arg,
argument,
conjugate,
exp,
imag,
log,
norm,
order,
pari,
prec,
real,
sqrt
These methods are defined as follows:
) |
Same as argument.
) |
The argument (angle) of the complex number, normalized so that -pi < arg <= pi.
WARNING: We use the floating point atan function, so there is precision loss.
) |
[prec=None]) |
Compute exp(z) using Fourier series.
If prec is given, compute until the nth summand
is less than
.
) |
) |
Complex logarithm of z with branch chosen as follows: Write z = rho*exp(i*theta) with -pi <= theta < pi. Then log(z) = log(rho) + i*theta.
WARNING: Currently the real log is computed using floats, so there is potential precision loss.
) |
) |
) |
) |
) |
) |
Instances of class ComplexNumber also have the following special methods:
) |
right) |
other) |
) |
right) |
) |
) |
) |
) |
right) |
) |
) |
right) |
left) |
left) |
left) |
left) |
right) |
See About this document... for information on suggesting changes.