cmath
¶
This module is always available. It provides access to mathematical functions for complex numbers.
Functions¶
acos (x) |
Return the arc cosine of x. |
acosh (x) |
Return the inverse hyperbolic cosine of x. |
asin (x) |
Return the arc sine of x. |
asinh (x) |
Return the inverse hyperbolic sine of x. |
atan (x) |
Return the arc tangent of x. |
atanh (x) |
Return the inverse hyperbolic tangent of x. |
cos (x) |
Return the cosine of x. |
cosh (x) |
Return the hyperbolic cosine of x. |
exp (x) |
Return the exponential value e**x. |
isinf ((z) -> bool) |
Checks if the real or imaginary part of z is infinite. |
isnan (...) |
Checks if the real or imaginary part of z not a number (NaN) |
log ((x[, ...) |
If the base not specified, returns the natural logarithm (base e) of x. |
log10 (x) |
Return the base-10 logarithm of x. |
phase ((z) -> float) |
Return argument, also known as the phase angle, of a complex. |
polar ((z) -> r: float, phi: float) |
Convert a complex from rectangular coordinates to polar coordinates. |
rect ((r, phi) -> z: complex) |
Convert from polar coordinates to rectangular coordinates. |
sin (x) |
Return the sine of x. |
sinh (x) |
Return the hyperbolic sine of x. |
sqrt (x) |
Return the square root of x. |
tan (x) |
Return the tangent of x. |
tanh (x) |
Return the hyperbolic tangent of x. |