mirror of
https://github.com/python/cpython.git
synced 2025-11-26 21:33:10 +00:00
Fixed up formatting, added descriptions for previously undocumented functions.
This commit is contained in:
parent
fd9ef4a26d
commit
1b914b3397
2 changed files with 136 additions and 72 deletions
|
|
@ -6,48 +6,80 @@
|
||||||
This module is always available.
|
This module is always available.
|
||||||
It provides access to mathematical functions for complex numbers.
|
It provides access to mathematical functions for complex numbers.
|
||||||
The functions are:
|
The functions are:
|
||||||
\iftexi
|
|
||||||
\begin{funcdesc}{acos}{x}
|
\begin{funcdesc}{acos}{x}
|
||||||
\funcline{asin}{x}
|
Return the arc cosine of \var{x}.
|
||||||
\funcline{atan}{x}
|
\end{funcdesc}
|
||||||
\funcline{cos}{x}
|
|
||||||
\funcline{cosh}{x}
|
\begin{funcdesc}{acosh}{x}
|
||||||
\funcline{exp}{x}
|
Return the hyperbolic arc cosine of \var{x}.
|
||||||
\funcline{log}{x}
|
\end{funcdesc}
|
||||||
\funcline{log10}{x}
|
|
||||||
\funcline{sin}{x}
|
\begin{funcdesc}{asin}{x}
|
||||||
\funcline{sinh}{x}
|
Return the arc sine of \var{x}.
|
||||||
\funcline{sqrt}{x}
|
\end{funcdesc}
|
||||||
\funcline{tan}{x}
|
|
||||||
\funcline{tanh}{x}
|
\begin{funcdesc}{asinh}{x}
|
||||||
|
Return the hyperbolic arc sine of \var{x}.
|
||||||
|
\end{funcdesc}
|
||||||
|
|
||||||
|
\begin{funcdesc}{atan}{x}
|
||||||
|
Return the arc tangent of \var{x}.
|
||||||
|
\end{funcdesc}
|
||||||
|
|
||||||
|
\begin{funcdesc}{atanh}{x}
|
||||||
|
Return the hyperbolic arc tangent of \var{x}.
|
||||||
|
\end{funcdesc}
|
||||||
|
|
||||||
|
\begin{funcdesc}{cos}{x}
|
||||||
|
Return the cosine of \var{x}.
|
||||||
|
\end{funcdesc}
|
||||||
|
|
||||||
|
\begin{funcdesc}{cosh}{x}
|
||||||
|
Return the hyperbolic cosine of \var{x}.
|
||||||
|
\end{funcdesc}
|
||||||
|
|
||||||
|
\begin{funcdesc}{exp}{x}
|
||||||
|
Return the exponential value $\mbox{e}^x$.
|
||||||
|
\end{funcdesc}
|
||||||
|
|
||||||
|
\begin{funcdesc}{log}{x}
|
||||||
|
Return the natural logarithm of \var{x}.
|
||||||
|
\end{funcdesc}
|
||||||
|
|
||||||
|
\begin{funcdesc}{log10}{x}
|
||||||
|
Return the base-10 logarithm of \var{x}.
|
||||||
|
\end{funcdesc}
|
||||||
|
|
||||||
|
\begin{funcdesc}{sin}{x}
|
||||||
|
Return the sine of \var{x}.
|
||||||
|
\end{funcdesc}
|
||||||
|
|
||||||
|
\begin{funcdesc}{sinh}{x}
|
||||||
|
Return the hyperbolic sine of \var{x}.
|
||||||
|
\end{funcdesc}
|
||||||
|
|
||||||
|
\begin{funcdesc}{sqrt}{x}
|
||||||
|
Return the square root of \var{x}.
|
||||||
|
\end{funcdesc}
|
||||||
|
|
||||||
|
\begin{funcdesc}{tan}{x}
|
||||||
|
Return the tangent of \var{x}.
|
||||||
|
\end{funcdesc}
|
||||||
|
|
||||||
|
\begin{funcdesc}{tanh}{x}
|
||||||
|
Return the hyperbolic tangent of \var{x}.
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
\else
|
|
||||||
\code{acos(\varvars{x})},
|
|
||||||
\code{acosh(\varvars{x})},
|
|
||||||
\code{asin(\varvars{x})},
|
|
||||||
\code{asinh(\varvars{x})},
|
|
||||||
\code{atan(\varvars{x})},
|
|
||||||
\code{atanh(\varvars{x})},
|
|
||||||
\code{cos(\varvars{x})},
|
|
||||||
\code{cosh(\varvars{x})},
|
|
||||||
\code{exp(\varvars{x})},
|
|
||||||
\code{log(\varvars{x})},
|
|
||||||
\code{log10(\varvars{x})},
|
|
||||||
\code{sin(\varvars{x})},
|
|
||||||
\code{sinh(\varvars{x})},
|
|
||||||
\code{sqrt(\varvars{x})},
|
|
||||||
\code{tan(\varvars{x})},
|
|
||||||
\code{tanh(\varvars{x})}.
|
|
||||||
\fi
|
|
||||||
|
|
||||||
The module also defines two mathematical constants:
|
The module also defines two mathematical constants:
|
||||||
\iftexi
|
|
||||||
\begin{datadesc}{pi}
|
\begin{datadesc}{pi}
|
||||||
\dataline{e}
|
The mathematical constant \emph{pi}, as a real.
|
||||||
|
\end{datadesc}
|
||||||
|
|
||||||
|
\begin{datadesc}{e}
|
||||||
|
The mathematical constant \emph{e}, as a real.
|
||||||
\end{datadesc}
|
\end{datadesc}
|
||||||
\else
|
|
||||||
\code{pi} and \code{e}.
|
|
||||||
\fi
|
|
||||||
|
|
||||||
Note that the selection of functions is similar, but not identical, to
|
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 in module \code{math}. The reason for having two modules is,
|
||||||
|
|
|
||||||
104
Doc/libcmath.tex
104
Doc/libcmath.tex
|
|
@ -6,48 +6,80 @@
|
||||||
This module is always available.
|
This module is always available.
|
||||||
It provides access to mathematical functions for complex numbers.
|
It provides access to mathematical functions for complex numbers.
|
||||||
The functions are:
|
The functions are:
|
||||||
\iftexi
|
|
||||||
\begin{funcdesc}{acos}{x}
|
\begin{funcdesc}{acos}{x}
|
||||||
\funcline{asin}{x}
|
Return the arc cosine of \var{x}.
|
||||||
\funcline{atan}{x}
|
\end{funcdesc}
|
||||||
\funcline{cos}{x}
|
|
||||||
\funcline{cosh}{x}
|
\begin{funcdesc}{acosh}{x}
|
||||||
\funcline{exp}{x}
|
Return the hyperbolic arc cosine of \var{x}.
|
||||||
\funcline{log}{x}
|
\end{funcdesc}
|
||||||
\funcline{log10}{x}
|
|
||||||
\funcline{sin}{x}
|
\begin{funcdesc}{asin}{x}
|
||||||
\funcline{sinh}{x}
|
Return the arc sine of \var{x}.
|
||||||
\funcline{sqrt}{x}
|
\end{funcdesc}
|
||||||
\funcline{tan}{x}
|
|
||||||
\funcline{tanh}{x}
|
\begin{funcdesc}{asinh}{x}
|
||||||
|
Return the hyperbolic arc sine of \var{x}.
|
||||||
|
\end{funcdesc}
|
||||||
|
|
||||||
|
\begin{funcdesc}{atan}{x}
|
||||||
|
Return the arc tangent of \var{x}.
|
||||||
|
\end{funcdesc}
|
||||||
|
|
||||||
|
\begin{funcdesc}{atanh}{x}
|
||||||
|
Return the hyperbolic arc tangent of \var{x}.
|
||||||
|
\end{funcdesc}
|
||||||
|
|
||||||
|
\begin{funcdesc}{cos}{x}
|
||||||
|
Return the cosine of \var{x}.
|
||||||
|
\end{funcdesc}
|
||||||
|
|
||||||
|
\begin{funcdesc}{cosh}{x}
|
||||||
|
Return the hyperbolic cosine of \var{x}.
|
||||||
|
\end{funcdesc}
|
||||||
|
|
||||||
|
\begin{funcdesc}{exp}{x}
|
||||||
|
Return the exponential value $\mbox{e}^x$.
|
||||||
|
\end{funcdesc}
|
||||||
|
|
||||||
|
\begin{funcdesc}{log}{x}
|
||||||
|
Return the natural logarithm of \var{x}.
|
||||||
|
\end{funcdesc}
|
||||||
|
|
||||||
|
\begin{funcdesc}{log10}{x}
|
||||||
|
Return the base-10 logarithm of \var{x}.
|
||||||
|
\end{funcdesc}
|
||||||
|
|
||||||
|
\begin{funcdesc}{sin}{x}
|
||||||
|
Return the sine of \var{x}.
|
||||||
|
\end{funcdesc}
|
||||||
|
|
||||||
|
\begin{funcdesc}{sinh}{x}
|
||||||
|
Return the hyperbolic sine of \var{x}.
|
||||||
|
\end{funcdesc}
|
||||||
|
|
||||||
|
\begin{funcdesc}{sqrt}{x}
|
||||||
|
Return the square root of \var{x}.
|
||||||
|
\end{funcdesc}
|
||||||
|
|
||||||
|
\begin{funcdesc}{tan}{x}
|
||||||
|
Return the tangent of \var{x}.
|
||||||
|
\end{funcdesc}
|
||||||
|
|
||||||
|
\begin{funcdesc}{tanh}{x}
|
||||||
|
Return the hyperbolic tangent of \var{x}.
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
\else
|
|
||||||
\code{acos(\varvars{x})},
|
|
||||||
\code{acosh(\varvars{x})},
|
|
||||||
\code{asin(\varvars{x})},
|
|
||||||
\code{asinh(\varvars{x})},
|
|
||||||
\code{atan(\varvars{x})},
|
|
||||||
\code{atanh(\varvars{x})},
|
|
||||||
\code{cos(\varvars{x})},
|
|
||||||
\code{cosh(\varvars{x})},
|
|
||||||
\code{exp(\varvars{x})},
|
|
||||||
\code{log(\varvars{x})},
|
|
||||||
\code{log10(\varvars{x})},
|
|
||||||
\code{sin(\varvars{x})},
|
|
||||||
\code{sinh(\varvars{x})},
|
|
||||||
\code{sqrt(\varvars{x})},
|
|
||||||
\code{tan(\varvars{x})},
|
|
||||||
\code{tanh(\varvars{x})}.
|
|
||||||
\fi
|
|
||||||
|
|
||||||
The module also defines two mathematical constants:
|
The module also defines two mathematical constants:
|
||||||
\iftexi
|
|
||||||
\begin{datadesc}{pi}
|
\begin{datadesc}{pi}
|
||||||
\dataline{e}
|
The mathematical constant \emph{pi}, as a real.
|
||||||
|
\end{datadesc}
|
||||||
|
|
||||||
|
\begin{datadesc}{e}
|
||||||
|
The mathematical constant \emph{e}, as a real.
|
||||||
\end{datadesc}
|
\end{datadesc}
|
||||||
\else
|
|
||||||
\code{pi} and \code{e}.
|
|
||||||
\fi
|
|
||||||
|
|
||||||
Note that the selection of functions is similar, but not identical, to
|
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 in module \code{math}. The reason for having two modules is,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue