Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libmath.tex @ 12714:8dca55867998 legacy-trunk
New description for math.frexp() -- poor description noted by
Francois Pinard.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Thu, 18 May 2000 05:07:38 +0000 |
| parents | 2a6dc65c060f |
| children | 03aa26819ac2 |
line wrap: on
line diff
--- a/Doc/lib/libmath.tex Wed May 17 13:27:09 2000 +0000 +++ b/Doc/lib/libmath.tex Thu May 18 05:07:38 2000 +0000 @@ -64,8 +64,12 @@ \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}
