]> granicus.if.org Git - python/commitdiff
Typo in example.
authorGuido van Rossum <guido@python.org>
Thu, 17 Jul 1997 16:14:12 +0000 (16:14 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 17 Jul 1997 16:14:12 +0000 (16:14 +0000)
Doc/lib/libcmath.tex
Doc/libcmath.tex

index 107fa8bf508e5a53683b0b299b72fe1f7b4498c6..0a4a6670c08acb0d491db7890edc4d03c33e3b64 100644 (file)
@@ -52,7 +52,7 @@ The module also defines two mathematical constants:
 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(-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
 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
index 107fa8bf508e5a53683b0b299b72fe1f7b4498c6..0a4a6670c08acb0d491db7890edc4d03c33e3b64 100644 (file)
@@ -52,7 +52,7 @@ The module also defines two mathematical constants:
 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(-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
 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