public class cmath extends Object
Constructor and Description |
---|
cmath() |
Modifier and Type | Method and Description |
---|---|
static PyComplex |
acos(PyObject w)
Return the arc cosine of w.
|
static PyComplex |
acosh(PyObject w)
Return the hyperbolic arc cosine of w.
|
static PyComplex |
asin(PyObject w)
Return the arc sine of w.
|
static PyComplex |
asinh(PyObject w)
Return the hyperbolic arc sine of w.
|
static PyComplex |
atan(PyObject w)
Return the arc tangent of w.
|
static PyComplex |
atanh(PyObject w)
Return the hyperbolic arc tangent of w.
|
static PyComplex |
cos(PyObject z)
Return the cosine of z.
|
static PyComplex |
cosh(PyObject z)
Return the hyperbolic cosine of z.
|
static PyComplex |
exp(PyObject z)
Return the exponential value ez.
|
static boolean |
isinf(PyObject in) |
static boolean |
isnan(PyObject in) |
static PyComplex |
log(PyObject w)
Returns the natural logarithm of w.
|
static PyComplex |
log(PyObject w,
PyObject b)
Returns the logarithm of w to the given base.
|
static PyComplex |
log10(PyObject w)
Returns the common logarithm of w (base 10 logarithm).
|
static double |
phase(PyObject in) |
static PyTuple |
polar(PyObject in) |
static PyComplex |
rect(double r,
double phi)
Return the complex number x with polar coordinates r and phi.
|
static PyComplex |
sin(PyObject z)
Return the sine of z.
|
static PyComplex |
sinh(PyObject z)
Return the hyperbolic sine of z.
|
static PyComplex |
sqrt(PyObject w)
Calculate z = x+iy, such that z2 = w.
|
static PyComplex |
tan(PyObject z)
Return the tangent of z.
|
static PyComplex |
tanh(PyObject z)
Return the hyperbolic tangent of z.
|
public static PyComplex acos(PyObject w)
w
- public static PyComplex acosh(PyObject w)
w
- public static PyComplex asin(PyObject w)
w
- public static PyComplex asinh(PyObject w)
w
- public static PyComplex atan(PyObject w)
w
- public static PyComplex atanh(PyObject w)
w
- public static PyComplex cosh(PyObject z)
z
- public static PyComplex exp(PyObject z)
z
- public static double phase(PyObject in)
public static PyComplex rect(double r, double phi)
r * (math.cos(phi) + math.sin(phi)*1j)
.r
- radiusphi
- anglepublic static boolean isinf(PyObject in)
in
- true
if in.real or in.imag is positive or negative infinitypublic static boolean isnan(PyObject in)
in
- true
if in.real or in.imag is nan.public static PyComplex log(PyObject w)
w
- public static PyComplex log10(PyObject w)
w
- public static PyComplex log(PyObject w, PyObject b)
w
- b
- public static PyComplex sinh(PyObject z)
z
- public static PyComplex sqrt(PyObject w)
w
- to square-root