]> granicus.if.org Git - python/commitdiff
#6548: dont suggest existence of real and imag functions in cmath.
authorGeorg Brandl <georg@python.org>
Thu, 23 Jul 2009 07:08:58 +0000 (07:08 +0000)
committerGeorg Brandl <georg@python.org>
Thu, 23 Jul 2009 07:08:58 +0000 (07:08 +0000)
Doc/library/cmath.rst

index 4469573ccf4229bdc56558df269d37eb911bba76..2c1f1cfab50afc5a1d27579fb407398df0e4d7a1 100644 (file)
@@ -28,15 +28,15 @@ Complex coordinates
 
 Complex numbers can be expressed by two important coordinate systems.
 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.
 
 Definition::
 
    z = x + 1j * y
 
-   x := real(z)
-   y := imag(z)
+   x := z.real
+   y := z.imag
 
 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
@@ -216,7 +216,7 @@ The module also defines two mathematical constants:
 
 .. data:: pi
 
-   The mathematical constant *pi*, as a float.
+   The mathematical constant *π*, as a float.
 
 
 .. data:: e