[Bug 237800] pow(3) returns inaccurate results

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed May 8 20:16:52 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237800

--- Comment #4 from sgk at troutmask.apl.washington.edu ---
When you say you get the correct value on Linux, are you using clang 8.0.0 on
Linux or some version of gcc?  gcc will constant fold pow(10,29) using MPFR. 
Clang will generated a call to pow() in libm.

In any event, the library is computing pow(10,29) as exp(29*log(10))
where special polynomial approximations are being used.  With a ULP
of 0.51, I suppose reading Goldberg's paper is merited.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-numerics mailing list