GitBook: [master] 44 pages modified

This commit is contained in:
Daniel Spindelbauer
2018-08-20 10:02:34 +00:00
committed by gitbook-bot
parent 31da1d364c
commit 82d7dcf2ff
44 changed files with 321 additions and 303 deletions

View File

@@ -2,41 +2,41 @@
The `cmath` module provides some basic mathematical functions for working with complex numbers. Floating point support required for this module.
## Functions
## Methods
### cmath.cos\(z\)
#### cmath.cos\(z\)
Return the cosine of `z`.
### cmath.exp\(z\)
#### cmath.exp\(z\)
Return the exponential of `z`.
### cmath.log\(z\)
#### cmath.log\(z\)
Return the natural logarithm of `z`. The branch cut is along the negative real axis.
### cmath.log10\(z\)
#### cmath.log10\(z\)
Return the base-10 logarithm of `z`. The branch cut is along the negative real axis.
### cmath.phase\(z\)
#### cmath.phase\(z\)
Returns the phase of the number `z`, in the range \(-pi, +pi\).
### cmath.polar\(z\)
#### cmath.polar\(z\)
Returns, as a tuple, the polar form of `z`.
### cmath.rect\(r, phi\)
#### cmath.rect\(r, phi\)
Returns the complex number with modulus `r` and phase `phi`.
### cmath.sin\(z\)
#### cmath.sin\(z\)
Return the sine of `z`.
### cmath.sqrt\(z\)
#### cmath.sqrt\(z\)
Return the square-root of `z`.