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

Skip to content

Commit aa5dba0

Browse files
committed
Add index entry for reference to the math module.
1 parent d327a8d commit aa5dba0

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

Doc/lib/libcmath.tex

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ \section{Built-in Module \sectcode{cmath}}
8282
\end{datadesc}
8383

8484
Note that the selection of functions is similar, but not identical, to
85-
that in module \code{math}. The reason for having two modules is,
86-
that some users aren't interested in complex numbers, and perhaps
87-
don't even know what they are. They would rather have \code{math.sqrt(-1)}
88-
raise an exception than return a complex number. Also note that the
89-
functions defined in \code{cmath} always return a complex number, even
90-
if the answer can be expressed as a real number (in which case the
91-
complex number has an imaginary part of zero).
85+
that in module \code{math}\refbimodindex{math}. The reason for having
86+
two modules is, that some users aren't interested in complex numbers,
87+
and perhaps don't even know what they are. They would rather have
88+
\code{math.sqrt(-1)} raise an exception than return a complex number.
89+
Also note that the functions defined in \code{cmath} always return a
90+
complex number, even if the answer can be expressed as a real number
91+
(in which case the complex number has an imaginary part of zero).

Doc/libcmath.tex

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ \section{Built-in Module \sectcode{cmath}}
8282
\end{datadesc}
8383

8484
Note that the selection of functions is similar, but not identical, to
85-
that in module \code{math}. The reason for having two modules is,
86-
that some users aren't interested in complex numbers, and perhaps
87-
don't even know what they are. They would rather have \code{math.sqrt(-1)}
88-
raise an exception than return a complex number. Also note that the
89-
functions defined in \code{cmath} always return a complex number, even
90-
if the answer can be expressed as a real number (in which case the
91-
complex number has an imaginary part of zero).
85+
that in module \code{math}\refbimodindex{math}. The reason for having
86+
two modules is, that some users aren't interested in complex numbers,
87+
and perhaps don't even know what they are. They would rather have
88+
\code{math.sqrt(-1)} raise an exception than return a complex number.
89+
Also note that the functions defined in \code{cmath} always return a
90+
complex number, even if the answer can be expressed as a real number
91+
(in which case the complex number has an imaginary part of zero).

0 commit comments

Comments
 (0)