\bimodindex{math}
\renewcommand{\indexsubitem}{(in module math)}
This module is always available.
-It provides access to the mathematical functions defined by the C
+It provides access to the mathematical functions defined by the \C{}
standard.
They are:
\end{funcdesc}
\begin{funcdesc}{ceil}{x}
-Return the ceiling of \var{x}.
+Return the ceiling of \var{x} as a real.
\end{funcdesc}
\begin{funcdesc}{cos}{x}
\end{funcdesc}
\begin{funcdesc}{floor}{x}
-Return the floor of \var{x}.
+Return the floor of \var{x} as a real.
\end{funcdesc}
\begin{funcdesc}{fmod}{x, y}
Return \code{\var{x} * (2**\var{i})}.
\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}{modf}{x}
Return the fractional and integer parts of \var{x}. Both results
-carry the sign of \var{x}.
+carry the sign of \var{x}. The integer part is returned as a real.
\end{funcdesc}
\begin{funcdesc}{pow}{x, y}
Return the hyperbolic tangent of \var{x}.
\end{funcdesc}
-Note that \code{frexp} and \code{modf} have a different call/return
-pattern than their C equivalents: they take a single argument and
-return a pair of values, rather than returning their second return
-value through an `output parameter' (there is no such thing in Python).
+Note that \function{frexp()} and \function{modf()} have a different
+call/return pattern than their \C{} equivalents: they take a single
+argument and return a pair of values, rather than returning their
+second return value through an `output parameter' (there is no such
+thing in Python).
The module also defines two mathematical constants:
\bimodindex{math}
\renewcommand{\indexsubitem}{(in module math)}
This module is always available.
-It provides access to the mathematical functions defined by the C
+It provides access to the mathematical functions defined by the \C{}
standard.
They are:
\end{funcdesc}
\begin{funcdesc}{ceil}{x}
-Return the ceiling of \var{x}.
+Return the ceiling of \var{x} as a real.
\end{funcdesc}
\begin{funcdesc}{cos}{x}
\end{funcdesc}
\begin{funcdesc}{floor}{x}
-Return the floor of \var{x}.
+Return the floor of \var{x} as a real.
\end{funcdesc}
\begin{funcdesc}{fmod}{x, y}
Return \code{\var{x} * (2**\var{i})}.
\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}{modf}{x}
Return the fractional and integer parts of \var{x}. Both results
-carry the sign of \var{x}.
+carry the sign of \var{x}. The integer part is returned as a real.
\end{funcdesc}
\begin{funcdesc}{pow}{x, y}
Return the hyperbolic tangent of \var{x}.
\end{funcdesc}
-Note that \code{frexp} and \code{modf} have a different call/return
-pattern than their C equivalents: they take a single argument and
-return a pair of values, rather than returning their second return
-value through an `output parameter' (there is no such thing in Python).
+Note that \function{frexp()} and \function{modf()} have a different
+call/return pattern than their \C{} equivalents: they take a single
+argument and return a pair of values, rather than returning their
+second return value through an `output parameter' (there is no such
+thing in Python).
The module also defines two mathematical constants: