# cmath - pydoc - phpman

Help on built-in module cmath:

## NAME
    cmath

## DESCRIPTION
    This module provides access to mathematical functions for complex
    numbers.

## FUNCTIONS
### acos
        Return the arc cosine of z.

### acosh
        Return the inverse hyperbolic cosine of z.

### asin
        Return the arc sine of z.

### asinh
        Return the inverse hyperbolic sine of z.

### atan
        Return the arc tangent of z.

### atanh
        Return the inverse hyperbolic tangent of z.

### cos
        Return the cosine of z.

### cosh
        Return the hyperbolic cosine of z.

### exp
        Return the exponential value e**z.

### isclose
        Determine whether two complex numbers are close in value.

          rel_tol
            maximum difference for being considered "close", relative to the
            magnitude of the input values
          abs_tol
            maximum difference for being considered "close", regardless of the
            magnitude of the input values

        Return True if a is close in value to b, and False otherwise.

        For the values to be considered close, the difference between them must be
        smaller than at least one of the tolerances.

        -inf, inf and NaN behave similarly to the IEEE 754 Standard. That is, NaN is
        not close to anything, even itself. inf and -inf are only close to themselves.

### isfinite
        Return True if both the real and imaginary parts of z are finite, else False.

### isinf
        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
        log(z[, base]) -> the logarithm of z to the given base.

        If the base is not specified, returns the natural logarithm (base e) of z.

### log10
        Return the base-10 logarithm of z.

### phase
        Return argument, also known as the phase angle, of a complex.

### polar
        Convert a complex from rectangular coordinates to polar coordinates.

        r is the distance from 0 and phi the phase angle.

### rect
        Convert from polar coordinates to rectangular coordinates.

### sin
        Return the sine of z.

### sinh
        Return the hyperbolic sine of z.

### sqrt
        Return the square root of z.

### tan
        Return the tangent of z.

### tanh
        Return the hyperbolic tangent of z.

## DATA
    e = 2.718281828459045
    inf = inf
    infj = infj
    nan = nan
    nanj = nanj
    pi = 3.141592653589793
    tau = 6.283185307179586

## FILE
    (built-in)


