Commit 1b914b33 authored by Fred Drake's avatar Fred Drake

Fixed up formatting, added descriptions for previously undocumented functions.

parent fd9ef4a2
...@@ -6,48 +6,80 @@ ...@@ -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}
\end{funcdesc} Return the hyperbolic arc sine of \var{x}.
\else \end{funcdesc}
\code{acos(\varvars{x})},
\code{acosh(\varvars{x})}, \begin{funcdesc}{atan}{x}
\code{asin(\varvars{x})}, Return the arc tangent of \var{x}.
\code{asinh(\varvars{x})}, \end{funcdesc}
\code{atan(\varvars{x})},
\code{atanh(\varvars{x})}, \begin{funcdesc}{atanh}{x}
\code{cos(\varvars{x})}, Return the hyperbolic arc tangent of \var{x}.
\code{cosh(\varvars{x})}, \end{funcdesc}
\code{exp(\varvars{x})},
\code{log(\varvars{x})}, \begin{funcdesc}{cos}{x}
\code{log10(\varvars{x})}, Return the cosine of \var{x}.
\code{sin(\varvars{x})}, \end{funcdesc}
\code{sinh(\varvars{x})},
\code{sqrt(\varvars{x})}, \begin{funcdesc}{cosh}{x}
\code{tan(\varvars{x})}, Return the hyperbolic cosine of \var{x}.
\code{tanh(\varvars{x})}. \end{funcdesc}
\fi
\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}
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,
......
...@@ -6,48 +6,80 @@ ...@@ -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}
\end{funcdesc} Return the hyperbolic arc sine of \var{x}.
\else \end{funcdesc}
\code{acos(\varvars{x})},
\code{acosh(\varvars{x})}, \begin{funcdesc}{atan}{x}
\code{asin(\varvars{x})}, Return the arc tangent of \var{x}.
\code{asinh(\varvars{x})}, \end{funcdesc}
\code{atan(\varvars{x})},
\code{atanh(\varvars{x})}, \begin{funcdesc}{atanh}{x}
\code{cos(\varvars{x})}, Return the hyperbolic arc tangent of \var{x}.
\code{cosh(\varvars{x})}, \end{funcdesc}
\code{exp(\varvars{x})},
\code{log(\varvars{x})}, \begin{funcdesc}{cos}{x}
\code{log10(\varvars{x})}, Return the cosine of \var{x}.
\code{sin(\varvars{x})}, \end{funcdesc}
\code{sinh(\varvars{x})},
\code{sqrt(\varvars{x})}, \begin{funcdesc}{cosh}{x}
\code{tan(\varvars{x})}, Return the hyperbolic cosine of \var{x}.
\code{tanh(\varvars{x})}. \end{funcdesc}
\fi
\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}
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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment