Thread overview
[Issue 5628] std.math unittest disabled - roundoff error in pow() on SSE2
Jul 02, 2017
Vladimir Panteleev
Dec 15, 2019
Dlang Bot
Dec 25, 2019
Dlang Bot
July 02, 2017
https://issues.dlang.org/show_bug.cgi?id=5628

--- Comment #6 from Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> ---
Here is the extracted test case from std.math:

void main()
{
    import std.math;

    immutable real x = 46;
    immutable float xf = x;
    immutable double xd = x;

    immutable short neg2 = -2;
    immutable long neg8 = -8;

    assert(pow(xd, neg2) == 1 / (x * x));
    assert(pow(xf, neg8) == 1 / ((x * x) * (x * x) * (x * x) * (x * x)));
}

--
December 15, 2019
https://issues.dlang.org/show_bug.cgi?id=5628

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #7 from Dlang Bot <dlang-bot@dlang.rocks> ---
@berni44 created dlang/phobos pull request #7321 "Fix Issue 5628 - std.math unittest disabled - roundoff error in pow()" fixing this issue:

- Fix Issue 5628 - std.math unittest disabled - roundoff error in pow() on SSE2

https://github.com/dlang/phobos/pull/7321

--
December 25, 2019
https://issues.dlang.org/show_bug.cgi?id=5628

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #8 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/phobos pull request #7321 "Fix Issue 5628 - std.math unittest disabled - roundoff error in pow()" was merged into master:

- 7b9c47452152217dccc83ad8a35945ee472dda1a by Bernhard Seckinger:
  Fix Issue 5628 - std.math unittest disabled - roundoff error in pow() on SSE2

https://github.com/dlang/phobos/pull/7321

--