diff options
author | Fred Drake <fdrake@acm.org> | 2000-05-18 05:07:38 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-05-18 05:07:38 (GMT) |
commit | 8c5cedee697d9dc6985cc6b2be7524dd5fcc0b62 (patch) | |
tree | c11c312dbf06e3818842ba8bb268fe0a06c91fc5 | |
parent | 8a6d4d9cca09f962b6c1b0c2d5f787d96c223d12 (diff) | |
download | cpython-8c5cedee697d9dc6985cc6b2be7524dd5fcc0b62.zip cpython-8c5cedee697d9dc6985cc6b2be7524dd5fcc0b62.tar.gz cpython-8c5cedee697d9dc6985cc6b2be7524dd5fcc0b62.tar.bz2 |
New description for math.frexp() -- poor description noted by
Francois Pinard.
-rw-r--r-- | Doc/lib/libmath.tex | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Doc/lib/libmath.tex b/Doc/lib/libmath.tex index c20fd7f..bf0a1af 100644 --- a/Doc/lib/libmath.tex +++ b/Doc/lib/libmath.tex @@ -64,8 +64,12 @@ Return \code{\var{x} \%\ \var{y}}. \end{funcdesc} \begin{funcdesc}{frexp}{x} -Return the matissa and exponent for \var{x}. The mantissa is -positive. +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}). \end{funcdesc} \begin{funcdesc}{hypot}{x, y} |