FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.12] Docs: Add a single table summary for ``cmath`` (GH-131887) by miss-islington · Pull Request #132180 · python/cpython · GitHub

/ cpython Public
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .rst  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
51 changes: 51 additions & 0 deletions Doc/library/cmath.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,57 @@ the function is then applied to the result of the conversion.
1.4142135623730951j


==================================================== ============================================
**Conversions to and from polar coordinates**
--------------------------------------------------------------------------------------------------
:func:`phase(z) <phase>` Return the phase of *z*
:func:`polar(z) <polar>` Return the representation of *z* in polar coordinates
:func:`rect(r, phi) <rect>` Return the complex number *z* with polar coordinates *r* and *phi*

**Power and logarithmic functions**
--------------------------------------------------------------------------------------------------
:func:`exp(z) <exp>` Return *e* raised to the power *z*
:func:`log(z[, base]) <log>` Return the logarithm of *z* to the given *base* (*e* by default)
:func:`log10(z) <log10>` Return the base-10 logarithm of *z*
:func:`sqrt(z) <sqrt>` Return the square root of *z*

**Trigonometric functions**
--------------------------------------------------------------------------------------------------
:func:`acos(z) <acos>` Return the arc cosine of *z*
:func:`asin(z) <asin>` Return the arc sine of *z*
:func:`atan(z) <atan>` Return the arc tangent of *z*
:func:`cos(z) <cos>` Return the cosine of *z*
:func:`sin(z) <sin>` Return the sine of *z*
:func:`tan(z) <tan>` Return the tangent of *z*

**Hyperbolic functions**
--------------------------------------------------------------------------------------------------
:func:`acosh(z) <acosh>` Return the inverse hyperbolic cosine of *z*
:func:`asinh(z) <asinh>` Return the inverse hyperbolic sine of *z*
:func:`atanh(z) <atanh>` Return the inverse hyperbolic tangent of *z*
:func:`cosh(z) <cosh>` Return the hyperbolic cosine of *z*
:func:`sinh(z) <sinh>` Return the hyperbolic sine of *z*
:func:`tanh(z) <tanh>` Return the hyperbolic tangent of *z*

**Classification functions**
--------------------------------------------------------------------------------------------------
:func:`isfinite(z) <isfinite>` Check if all components of *z* are finite
:func:`isinf(z) <isinf>` Check if any component of *z* is infinite
:func:`isnan(z) <isnan>` Check if any component of *z* is a NaN
:func:`isclose(a, b, *, rel_tol, abs_tol) <isclose>` Check if the values *a* and *b* are close to each other

**Constants**
--------------------------------------------------------------------------------------------------
:data:`pi` *π* = 3.141592...
:data:`e` *e* = 2.718281...
:data:`tau` *τ* = 2\ *π* = 6.283185...
:data:`inf` Positive infinity
:data:`infj` Pure imaginary infinity
:data:`nan` "Not a number" (NaN)
:data:`nanj` Pure imaginary NaN
==================================================== ============================================


Conversions to and from polar coordinates
-----------------------------------------

Expand Down

Back | FazBrowse Home | New Git URL