File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -82,10 +82,10 @@ \section{Built-in Module \sectcode{cmath}}
8282\end {datadesc }
8383
8484Note 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).
Original file line number Diff line number Diff line change @@ -82,10 +82,10 @@ \section{Built-in Module \sectcode{cmath}}
8282\end {datadesc }
8383
8484Note 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).
You can’t perform that action at this time.
0 commit comments