mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
#6548: dont suggest existence of real and imag functions in cmath.
This commit is contained in:
parent
7fc214b55d
commit
0e66914907
1 changed files with 4 additions and 4 deletions
|
@ -28,15 +28,15 @@ Complex coordinates
|
||||||
|
|
||||||
Complex numbers can be expressed by two important coordinate systems.
|
Complex numbers can be expressed by two important coordinate systems.
|
||||||
Python's :class:`complex` type uses rectangular coordinates where a number
|
Python's :class:`complex` type uses rectangular coordinates where a number
|
||||||
on the complex plain is defined by two floats, the real part and the imaginary
|
on the complex plane is defined by two floats, the real part and the imaginary
|
||||||
part.
|
part.
|
||||||
|
|
||||||
Definition::
|
Definition::
|
||||||
|
|
||||||
z = x + 1j * y
|
z = x + 1j * y
|
||||||
|
|
||||||
x := real(z)
|
x := z.real
|
||||||
y := imag(z)
|
y := z.imag
|
||||||
|
|
||||||
In engineering the polar coordinate system is popular for complex numbers. In
|
In engineering the polar coordinate system is popular for complex numbers. In
|
||||||
polar coordinates a complex number is defined by the radius *r* and the phase
|
polar coordinates a complex number is defined by the radius *r* and the phase
|
||||||
|
@ -216,7 +216,7 @@ The module also defines two mathematical constants:
|
||||||
|
|
||||||
.. data:: pi
|
.. data:: pi
|
||||||
|
|
||||||
The mathematical constant *pi*, as a float.
|
The mathematical constant *π*, as a float.
|
||||||
|
|
||||||
|
|
||||||
.. data:: e
|
.. data:: e
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue