Man page issues: logb, significand, cbrt, log2, log10, exp10

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I came across some minor issues in some math man pages.

M.



logb:
The formula "floor(log2(x))" should be "floor(log2(fabs(x)))".  (Or
...abs(...) if it's meant to be math and not C.)

significand:
The range [1,2) should be [1,FLT_RADIX)

cbrt:
The phrase "every representable real value has a representable real
cube root" is wrong.  In fact, a representable cube root is quite
rare.  This should be something like "every representable real value
has a real cube root and rounding it to a representable value never
causes overflow or underflow."

log2, log10:
These use, e.g., "base 2 logarithm".  Compare that to exp2's "base-2
exponential" (with a hyphen).  I am leaning towards the hyphenated
version being correct, but I am not a native English speaker.

exp10:
The man page probably should come with a warning not to use the
function for the time being.  The implementation is pretty bad.  For
example, results for integer arguments 3, 4, 7, 8, 9, and 17 are
needlessly inaccurate.  pow(10,x) is much better, but not perfect.




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux