Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libcmath.tex @ 7049:aece51362ada legacy-trunk
Add index entry for reference to the math module.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Fri, 09 Jan 1998 21:30:03 +0000 |
| parents | 32663267eb40 |
| children | 193d704cbcc8 |
line wrap: on
line diff
--- a/Doc/lib/libcmath.tex Fri Jan 09 21:26:51 1998 +0000 +++ b/Doc/lib/libcmath.tex Fri Jan 09 21:30:03 1998 +0000 @@ -82,10 +82,10 @@ \end{datadesc} 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 some users aren't interested in complex numbers, and perhaps -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 -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 -complex number has an imaginary part of zero). +that in module \code{math}\refbimodindex{math}. The reason for having +two modules is, that some users aren't interested in complex numbers, +and perhaps 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 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 complex number has an imaginary part of zero).
