mirror of
https://github.com/python/cpython.git
synced 2025-10-22 06:32:43 +00:00
Typo in example.
This commit is contained in:
parent
14a8024b04
commit
246d96555f
2 changed files with 2 additions and 2 deletions
|
@ -52,7 +52,7 @@ The module also defines two mathematical constants:
|
||||||
Note that the selection of functions is similar, but not identical, to
|
Note that the selection of functions is similar, but not identical, to
|
||||||
that in module \code{math}. The reason for having two modules is,
|
that in module \code{math}. The reason for having two modules is,
|
||||||
that some users aren't interested in complex numbers, and perhaps
|
that some users aren't interested in complex numbers, and perhaps
|
||||||
don't even know what they are. They would rather have \code{math(-1)}
|
don't even know what they are. They would rather have \code{math.sqrt(-1)}
|
||||||
raise an exception than return a complex number. Also note that the
|
raise an exception than return a complex number. Also note that the
|
||||||
functions defined in \code{cmath} always return a complex number, even
|
functions defined in \code{cmath} always return a complex number, even
|
||||||
if the answer can be expressed as a real number (in which case the
|
if the answer can be expressed as a real number (in which case the
|
||||||
|
|
|
@ -52,7 +52,7 @@ The module also defines two mathematical constants:
|
||||||
Note that the selection of functions is similar, but not identical, to
|
Note that the selection of functions is similar, but not identical, to
|
||||||
that in module \code{math}. The reason for having two modules is,
|
that in module \code{math}. The reason for having two modules is,
|
||||||
that some users aren't interested in complex numbers, and perhaps
|
that some users aren't interested in complex numbers, and perhaps
|
||||||
don't even know what they are. They would rather have \code{math(-1)}
|
don't even know what they are. They would rather have \code{math.sqrt(-1)}
|
||||||
raise an exception than return a complex number. Also note that the
|
raise an exception than return a complex number. Also note that the
|
||||||
functions defined in \code{cmath} always return a complex number, even
|
functions defined in \code{cmath} always return a complex number, even
|
||||||
if the answer can be expressed as a real number (in which case the
|
if the answer can be expressed as a real number (in which case the
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue