Module cmath
[hide private]
[frames] | no frames]

Module cmath

This module is always available. It provides access to mathematical functions for complex numbers.

Functions [hide private]
 
acos(x)
Return the arc cosine of x.
 
acosh(x)
Return the hyperbolic arccosine of x.
 
asin(x)
Return the arc sine of x.
 
asinh(x)
Return the hyperbolic arc sine of x.
 
atan(x)
Return the arc tangent of x.
 
atanh(x)
Return the hyperbolic arc tangent of x.
 
cos(x)
nReturn the cosine of x.
 
cosh(x)
nReturn the hyperbolic cosine of x.
 
exp(x)
Return the exponential value e**x.
the logarithm of x to the given base
log(x, base=...)
If the base not specified, returns the natural logarithm (base e) of x.
 
log10(x)
Return the base-10 logarithm of x.
 
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.
Variables [hide private]
  e = 2.71828182846
  pi = 3.14159265359