summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-07-03 06:38:17 (GMT)
committerFred Drake <fdrake@acm.org>2000-07-03 06:38:17 (GMT)
commitfcc95a4d04db9f9787c2602132934b88c83f4e51 (patch)
tree8f1339144b69b9662365d5fe16439d4cc8ba8479
parentb4dccf0dcde552c09496be175522290ee2a222fc (diff)
downloadcpython-fcc95a4d04db9f9787c2602132934b88c83f4e51.zip
cpython-fcc95a4d04db9f9787c2602132934b88c83f4e51.tar.gz
cpython-fcc95a4d04db9f9787c2602132934b88c83f4e51.tar.bz2
Tim-blessed documentation for math.frexp().
-rw-r--r--Doc/lib/libmath.tex12
1 files changed, 6 insertions, 6 deletions
diff --git a/Doc/lib/libmath.tex b/Doc/lib/libmath.tex
index bf0a1af..d057e86 100644
--- a/Doc/lib/libmath.tex
+++ b/Doc/lib/libmath.tex
@@ -64,12 +64,12 @@ Return \code{\var{x} \%\ \var{y}}.
\end{funcdesc}
\begin{funcdesc}{frexp}{x}
-Convert a floating-point number to fractional and integral
-components. If \var{x} is zero, returns \code{(0.0, 0)}, otherwise
-returns \code{(\var{frac}, \var{exp})} such that \code{\var{frac} *
-2**\var{exp}} will equal \var{x}. \var{exp} will be an integer, and
-the absolute value of \var{frac} will be in the range [0.5, 1.0)
-(\var{frac} will share the sign of \var{x}).
+% Blessed by Tim.
+Return the mantissa and exponent of \var{x} as the pair
+\code{(\var{m}, \var{e})}. \var{m} is a float and \var{e} is an
+integer such that \code{\var{x} == \var{m} * 2**\var{e}}.
+If \var{x} is zero, returns \code{(0.0, 0)}, otherwise
+\code{0.5 <= abs(\var{m}) < 1}.
\end{funcdesc}
\begin{funcdesc}{hypot}{x, y}