[PATCH v2 3/3] manual: Cube roots are rarely representable
Paul Zimmermann
Paul.Zimmermann@inria.fr
Sat Mar 30 07:07:32 GMT 2024
> From: DJ Delorie <dj@redhat.com>
> Cc: libc-alpha@sourceware.org
> Date: Fri, 29 Mar 2024 20:27:44 -0400
>
> Alejandro Colomar <alx@kernel.org> writes:
>
> > -These functions return the cube root of @var{x}. They cannot
> > -fail; every representable real value has a representable real cube root.
>
> > +These functions return the cube root of @var{x}. They cannot
> > +fail; every representable real value has a real cube root,
> > +and rounding it to a representable value
> > +never causes overflow nor underflow.
>
> Wording is OK but the $subject says the exact opposite...
It is fine to me. The subject says that the cube root of a floating-point
number is rarely a floating-point number, which is true: for a p-bit format,
only about 2^(p/3) numbers have an exact cube root.
Paul
More information about the Libc-alpha
mailing list