summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-07-17 16:14:12 (GMT)
committerGuido van Rossum <guido@python.org>1997-07-17 16:14:12 (GMT)
commit246d96555f47210a44a391a3fcea286ea60ec52b (patch)
treeaed29268e29f6764b64744bfbbd23c6608eca237
parent14a8024b04b1503a5c01a22e7b3e779068663450 (diff)
downloadcpython-246d96555f47210a44a391a3fcea286ea60ec52b.zip
cpython-246d96555f47210a44a391a3fcea286ea60ec52b.tar.gz
cpython-246d96555f47210a44a391a3fcea286ea60ec52b.tar.bz2
Typo in example.
-rw-r--r--Doc/lib/libcmath.tex2
-rw-r--r--Doc/libcmath.tex2
2 files changed, 2 insertions, 2 deletions
diff --git a/Doc/lib/libcmath.tex b/Doc/lib/libcmath.tex
index 107fa8b..0a4a667 100644
--- a/Doc/lib/libcmath.tex
+++ b/Doc/lib/libcmath.tex
@@ -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
diff --git a/Doc/libcmath.tex b/Doc/libcmath.tex
index 107fa8b..0a4a667 100644
--- a/Doc/libcmath.tex
+++ b/Doc/libcmath.tex
@@ -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