Skip to content

Commit dfdcc5f

Browse files
committed
Add a single table as summary to cmath documentation
1 parent ab38770 commit dfdcc5f

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

Doc/library/cmath.rst

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,61 @@ the function is then applied to the result of the conversion.
3838
1.4142135623730951j
3939

4040

41+
==================================================== ============================================
42+
**Conversions to and from polar coordinates**
43+
------------------------------------------------------------------------------
44+
:func:`phase(z) <phase>` Return the phase of *z*
45+
:func:`polar(z) <polar>` Return the representation of *z* in polar coordinates.
46+
:func:`rect(r, phi) <rect>` Return the complex number *z* with polar coordinates *r* and *phi*
47+
48+
**Power and logarithmic functions**
49+
------------------------------------------------------------------------------
50+
51+
:func:`exp(z) <exp>` Return *e* raised to the power *z*
52+
:func:`log(z[, base]) <log>` Return the logarithm of *z* to the given *base* (*e* by default)
53+
:func:`log10(z) <log10>` Return the base-10 logarithm of *z*
54+
:func:`sqrt(z) <sqrt>` Return the square root of *z*
55+
56+
**Trigonometric functions**
57+
------------------------------------------------------------------------------
58+
59+
:func:`acos(z) <acos>` Return the arc cosine of *z*
60+
:func:`asin(z) <asin>` Return the arc sine of *z*
61+
:func:`atan(z) <atan>` Return the arc tangent of *z*
62+
:func:`cos(z) <cos>` Return the cosine of *z*.
63+
:func:`sin(z) <sin>` Return the sine of *z*.
64+
:func:`tan(z) <tan>` Return the tangent of *z*.
65+
66+
**Hyperbolic functions**
67+
------------------------------------------------------------------------------
68+
69+
:func:`acosh(z) <acosh>` Return the inverse hyperbolic cosine of *z*
70+
:func:`asinh(z) <asinh>` Return the inverse hyperbolic sine of *z*
71+
:func:`atanh(z) <atanh>` Return the inverse hyperbolic tangent of *z*
72+
:func:`cosh(z) <cosh>` Return the hyperbolic cosine of *z*
73+
:func:`sinh(z) <sinh>` Return the hyperbolic sine of *z*.
74+
:func:`tanh(z) <tanh>` Return the hyperbolic tangent of *z*.
75+
76+
**Classification functions**
77+
------------------------------------------------------------------------------
78+
79+
:func:`isfinite(z) <isfinite>` Check if all components of *z* are finite
80+
:func:`isinf(z) <isinf>` Check if any component of *z* is infinite
81+
:func:`isnan(z) <isnan>` Check if either component of *z* is a NaN
82+
:func:`isclose(a, b, *, rel_tol, abs_tol) <isclose>` Check if the values *a* and *b* are close to each other
83+
84+
**Constants**
85+
--------------------------------------------------------------------------------------------------
86+
:data:`pi` *π* = 3.141592...
87+
:data:`e` *e* = 2.718281...
88+
:data:`tau` *τ* = 2\ *π* = 6.283185...
89+
:data:`inf` Positive infinity
90+
:data:`infj` Pure imaginary infinity
91+
:data:`nan` "Not a number" (NaN)
92+
:data:`nanj` Pure imaginary NaN
93+
==================================================== ============================================
94+
95+
4196
Conversions to and from polar coordinates
4297
-----------------------------------------
4398

0 commit comments

Comments
 (0)