Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 246d965

Browse files
committed
Typo in example.
1 parent 14a8024 commit 246d965

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/lib/libcmath.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ \section{Built-in Module \sectcode{cmath}}
5252
Note that the selection of functions is similar, but not identical, to
5353
that in module \code{math}. The reason for having two modules is,
5454
that some users aren't interested in complex numbers, and perhaps
55-
don't even know what they are. They would rather have \code{math(-1)}
55+
don't even know what they are. They would rather have \code{math.sqrt(-1)}
5656
raise an exception than return a complex number. Also note that the
5757
functions defined in \code{cmath} always return a complex number, even
5858
if the answer can be expressed as a real number (in which case the

Doc/libcmath.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ \section{Built-in Module \sectcode{cmath}}
5252
Note that the selection of functions is similar, but not identical, to
5353
that in module \code{math}. The reason for having two modules is,
5454
that some users aren't interested in complex numbers, and perhaps
55-
don't even know what they are. They would rather have \code{math(-1)}
55+
don't even know what they are. They would rather have \code{math.sqrt(-1)}
5656
raise an exception than return a complex number. Also note that the
5757
functions defined in \code{cmath} always return a complex number, even
5858
if the answer can be expressed as a real number (in which case the

0 commit comments

Comments
 (0)