This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug math/15396] New: Vast inaccuracies of casin/casinh/cacos/cacosh with IBM long double


http://sourceware.org/bugzilla/show_bug.cgi?id=15396

             Bug #: 15396
           Summary: Vast inaccuracies of casin/casinh/cacos/cacosh with
                    IBM long double
           Product: glibc
           Version: 2.18
            Status: NEW
          Severity: normal
          Priority: P2
         Component: math
        AssignedTo: unassigned@sourceware.org
        ReportedBy: schwab@linux-m68k.org
    Classification: Unclassified
              Host: powerpc*-*-*


Failure: Test: Real part of: cacos (0x1.0000000000001p0 + 0x1.fp-1025 i) ==
2.557178503953494342609835913586108008322e-301 -
2.107342425544701550354780375182800088393e-8 i
Result:
 is:          2.55717850395349441328e-301   0x1.5eb99734b41ee0000000p-999
 should be:   2.55717850395349441328e-301   0x1.5eb99734b41edd458700p-999
 difference:  7.06747072537819626541e-318   0x0.000000015d3c80000000p-1022
 ulp       :  1430472.0000
 max.ulp   :  0.0000
Failure: Test: Real part of: cacos (0x1.0000000000001p0 - 0x1.fp-1025 i) ==
2.557178503953494342609835913586108008322e-301 +
2.107342425544701550354780375182800088393e-8 i
Result:
 is:          2.55717850395349441328e-301   0x1.5eb99734b41ee0000000p-999
 should be:   2.55717850395349441328e-301   0x1.5eb99734b41edd458700p-999
 difference:  7.06747072537819626541e-318   0x0.000000015d3c80000000p-1022
 ulp       :  1430472.0000
 max.ulp   :  0.0000
Failure: Test: Imaginary part of: cacos (0x0.fffffffffffff8p0 + 0x1.fp-1025 i)
== 1.490116119384765638786343542550461592240e-8 -
3.616396521699973256461764099945789620604e-301 i
Result:
 is:         -3.61639652169997315609e-301  -0x1.f0000000000000000000p-999
 should be:  -3.61639652169997315609e-301  -0x1.f0000000000003e00000p-999
 difference:  1.00375167114140993909e-317   0x0.00000001f00000000000p-1022
 ulp       :  2031616.0000
 max.ulp   :  0.0000
Failure: Test: Imaginary part of: cacos (-0x0.fffffffffffff8p0 + 0x1.fp-1025 i)
== 3.141592638688632044614986995416067458693 -
3.616396521699973256461764099945789620604e-301 i
Result:
 is:         -3.61639652169997315609e-301  -0x1.f0000000000000000000p-999
 should be:  -3.61639652169997315609e-301  -0x1.f0000000000003e00000p-999
 difference:  1.00375167114140993909e-317   0x0.00000001f00000000000p-1022
 ulp       :  2031616.0000
 max.ulp   :  0.0000
Failure: Test: Imaginary part of: cacos (0x0.fffffffffffff8p0 - 0x1.fp-1025 i)
== 1.490116119384765638786343542550461592240e-8 +
3.616396521699973256461764099945789620604e-301 i
Result:
 is:          3.61639652169997315609e-301   0x1.f0000000000000000000p-999
 should be:   3.61639652169997315609e-301   0x1.f0000000000003e00000p-999
 difference:  1.00375167114140993909e-317   0x0.00000001f00000000000p-1022
 ulp       :  2031616.0000
 max.ulp   :  0.0000
Failure: Test: Imaginary part of: cacos (-0x0.fffffffffffff8p0 - 0x1.fp-1025 i)
== 3.141592638688632044614986995416067458693 +
3.616396521699973256461764099945789620604e-301 i
Result:
 is:          3.61639652169997315609e-301   0x1.f0000000000000000000p-999
 should be:   3.61639652169997315609e-301   0x1.f0000000000003e00000p-999
 difference:  1.00375167114140993909e-317   0x0.00000001f00000000000p-1022
 ulp       :  2031616.0000
 max.ulp   :  0.0000
Failure: Test: Imaginary part of: cacos (0x0.ffffffffffffffffffffffffffcp0 +
0x1.fp-1025 i) == 1.570092458683775059393382371963565104164e-16 -
3.432186888910770473784103112009399360940e-293 i
Result:
 is:         -3.43218688891077037812e-293  -0x1.5eb99734b41ee0000000p-972
 should be:  -3.43218688891077039008e-293  -0x1.5eb99734b41ee2c06d63p-972
 difference:  9.56666723728629431678e-310   0x0.0b01b58ceb2ed0000000p-1022
 ulp       :  193631500546797.0000
 max.ulp   :  0.0000
Failure: Test: Imaginary part of: cacos (-0x0.ffffffffffffffffffffffffffcp0 +
0x1.fp-1025 i) == 3.141592653589793081453397514901996944859 -
3.432186888910770473784103112009399360940e-293 i
Result:
 is:         -3.43218688891077037812e-293  -0x1.5eb99734b41ee0000000p-972
 should be:  -3.43218688891077039008e-293  -0x1.5eb99734b41ee2c06d63p-972
 difference:  9.56666723728629431678e-310   0x0.0b01b58ceb2ed0000000p-1022
 ulp       :  193631500546797.0000
 max.ulp   :  0.0000
Failure: Test: Imaginary part of: cacos (0x0.ffffffffffffffffffffffffffcp0 -
0x1.fp-1025 i) == 1.570092458683775059393382371963565104164e-16 +
3.432186888910770473784103112009399360940e-293 i
Result:
 is:          3.43218688891077037812e-293   0x1.5eb99734b41ee0000000p-972
 should be:   3.43218688891077039008e-293   0x1.5eb99734b41ee2c06d63p-972
 difference:  9.56666723728629431678e-310   0x0.0b01b58ceb2ed0000000p-1022
 ulp       :  193631500546797.0000
 max.ulp   :  0.0000
Failure: Test: Imaginary part of: cacos (-0x0.ffffffffffffffffffffffffffcp0 -
0x1.fp-1025 i) == 3.141592653589793081453397514901996944859 +
3.432186888910770473784103112009399360940e-293 i
Result:
 is:          3.43218688891077037812e-293   0x1.5eb99734b41ee0000000p-972
 should be:   3.43218688891077039008e-293   0x1.5eb99734b41ee2c06d63p-972
 difference:  9.56666723728629431678e-310   0x0.0b01b58ceb2ed0000000p-1022
 ulp       :  193631500546797.0000
 max.ulp   :  0.0000
Maximal error of real part of: cacos
 is      : 1430472 ulp
 accepted: 1 ulp
Maximal error of imaginary part of: cacos
 is      : 193631500546797 ulp
 accepted: 1 ulp
Failure: Test: Imaginary part of: cacosh (0x1.0000000000001p0 + 0x1.fp-1025 i)
== 2.107342425544701550354780375182800088393e-8 +
2.557178503953494342609835913586108008322e-301 i
Result:
 is:          2.55717850395349441328e-301   0x1.5eb99734b41ee0000000p-999
 should be:   2.55717850395349441328e-301   0x1.5eb99734b41edd458700p-999
 difference:  7.06747072537819626541e-318   0x0.000000015d3c80000000p-1022
 ulp       :  1430472.0000
 max.ulp   :  0.0000
Failure: Test: Imaginary part of: cacosh (0x1.0000000000001p0 - 0x1.fp-1025 i)
== 2.107342425544701550354780375182800088393e-8 -
2.557178503953494342609835913586108008322e-301 i
Result:
 is:         -2.55717850395349441328e-301  -0x1.5eb99734b41ee0000000p-999
 should be:  -2.55717850395349441328e-301  -0x1.5eb99734b41edd458700p-999
 difference:  7.06747072537819626541e-318   0x0.000000015d3c80000000p-1022
 ulp       :  1430472.0000
 max.ulp   :  0.0000
Failure: Test: Real part of: cacosh (0x0.fffffffffffff8p0 + 0x1.fp-1025 i) ==
3.616396521699973256461764099945789620604e-301 +
1.490116119384765638786343542550461592240e-8 i
Result:
 is:          3.61639652169997315609e-301   0x1.f0000000000000000000p-999
 should be:   3.61639652169997315609e-301   0x1.f0000000000003e00000p-999
 difference:  1.00375167114140993909e-317   0x0.00000001f00000000000p-1022
 ulp       :  2031616.0000
 max.ulp   :  0.0000
Failure: Test: Real part of: cacosh (-0x0.fffffffffffff8p0 + 0x1.fp-1025 i) ==
3.616396521699973256461764099945789620604e-301 +
3.141592638688632044614986995416067458693 i
Result:
 is:          3.61639652169997315609e-301   0x1.f0000000000000000000p-999
 should be:   3.61639652169997315609e-301   0x1.f0000000000003e00000p-999
 difference:  1.00375167114140993909e-317   0x0.00000001f00000000000p-1022
 ulp       :  2031616.0000
 max.ulp   :  0.0000
Failure: Test: Real part of: cacosh (0x0.fffffffffffff8p0 - 0x1.fp-1025 i) ==
3.616396521699973256461764099945789620604e-301 -
1.490116119384765638786343542550461592240e-8 i
Result:
 is:          3.61639652169997315609e-301   0x1.f0000000000000000000p-999
 should be:   3.61639652169997315609e-301   0x1.f0000000000003e00000p-999
 difference:  1.00375167114140993909e-317   0x0.00000001f00000000000p-1022
 ulp       :  2031616.0000
 max.ulp   :  0.0000
Failure: Test: Real part of: cacosh (-0x0.fffffffffffff8p0 - 0x1.fp-1025 i) ==
3.616396521699973256461764099945789620604e-301 -
3.141592638688632044614986995416067458693 i
Result:
 is:          3.61639652169997315609e-301   0x1.f0000000000000000000p-999
 should be:   3.61639652169997315609e-301   0x1.f0000000000003e00000p-999
 difference:  1.00375167114140993909e-317   0x0.00000001f00000000000p-1022
 ulp       :  2031616.0000
 max.ulp   :  0.0000
Failure: Test: Real part of: cacosh (0x0.ffffffffffffffffffffffffffcp0 +
0x1.fp-1025 i) == 3.432186888910770473784103112009399360940e-293 +
1.570092458683775059393382371963565104164e-16 i
Result:
 is:          3.43218688891077037812e-293   0x1.5eb99734b41ee0000000p-972
 should be:   3.43218688891077039008e-293   0x1.5eb99734b41ee2c06d63p-972
 difference:  9.56666723728629431678e-310   0x0.0b01b58ceb2ed0000000p-1022
 ulp       :  193631500546797.0000
 max.ulp   :  0.0000
Failure: Test: Real part of: cacosh (-0x0.ffffffffffffffffffffffffffcp0 +
0x1.fp-1025 i) == 3.432186888910770473784103112009399360940e-293 +
3.141592653589793081453397514901996944859 i
Result:
 is:          3.43218688891077037812e-293   0x1.5eb99734b41ee0000000p-972
 should be:   3.43218688891077039008e-293   0x1.5eb99734b41ee2c06d63p-972
 difference:  9.56666723728629431678e-310   0x0.0b01b58ceb2ed0000000p-1022
 ulp       :  193631500546797.0000
 max.ulp   :  0.0000
Failure: Test: Real part of: cacosh (0x0.ffffffffffffffffffffffffffcp0 -
0x1.fp-1025 i) == 3.432186888910770473784103112009399360940e-293 -
1.570092458683775059393382371963565104164e-16 i
Result:
 is:          3.43218688891077037812e-293   0x1.5eb99734b41ee0000000p-972
 should be:   3.43218688891077039008e-293   0x1.5eb99734b41ee2c06d63p-972
 difference:  9.56666723728629431678e-310   0x0.0b01b58ceb2ed0000000p-1022
 ulp       :  193631500546797.0000
 max.ulp   :  0.0000
Failure: Test: Real part of: cacosh (-0x0.ffffffffffffffffffffffffffcp0 -
0x1.fp-1025 i) == 3.432186888910770473784103112009399360940e-293 -
3.141592653589793081453397514901996944859 i
Result:
 is:          3.43218688891077037812e-293   0x1.5eb99734b41ee0000000p-972
 should be:   3.43218688891077039008e-293   0x1.5eb99734b41ee2c06d63p-972
 difference:  9.56666723728629431678e-310   0x0.0b01b58ceb2ed0000000p-1022
 ulp       :  193631500546797.0000
 max.ulp   :  0.0000
Maximal error of real part of: cacosh
 is      : 193631500546797 ulp
 accepted: 1 ulp
Maximal error of imaginary part of: cacosh
 is      : 1430472 ulp
 accepted: 1 ulp
Failure: Test: Imaginary part of: casin (0x0.fffffffffffff8p0 + 0x1.fp-1025 i)
== 1.570796311893735425383665303776316016594 +
3.616396521699973256461764099945789620604e-301 i
Result:
 is:          3.61639652169997315609e-301   0x1.f0000000000000000000p-999
 should be:   3.61639652169997315609e-301   0x1.f0000000000003e00000p-999
 difference:  1.00375167114140993909e-317   0x0.00000001f00000000000p-1022
 ulp       :  2031616.0000
 max.ulp   :  0.0000
Failure: Test: Imaginary part of: casin (-0x0.fffffffffffff8p0 + 0x1.fp-1025 i)
== -1.570796311893735425383665303776316016594 +
3.616396521699973256461764099945789620604e-301 i
Result:
 is:          3.61639652169997315609e-301   0x1.f0000000000000000000p-999
 should be:   3.61639652169997315609e-301   0x1.f0000000000003e00000p-999
 difference:  1.00375167114140993909e-317   0x0.00000001f00000000000p-1022
 ulp       :  2031616.0000
 max.ulp   :  0.0000
Failure: Test: Imaginary part of: casin (0x0.fffffffffffff8p0 - 0x1.fp-1025 i)
== 1.570796311893735425383665303776316016594 -
3.616396521699973256461764099945789620604e-301 i
Result:
 is:         -3.61639652169997315609e-301  -0x1.f0000000000000000000p-999
 should be:  -3.61639652169997315609e-301  -0x1.f0000000000003e00000p-999
 difference:  1.00375167114140993909e-317   0x0.00000001f00000000000p-1022
 ulp       :  2031616.0000
 max.ulp   :  0.0000
Failure: Test: Imaginary part of: casin (-0x0.fffffffffffff8p0 - 0x1.fp-1025 i)
== -1.570796311893735425383665303776316016594 -
3.616396521699973256461764099945789620604e-301 i
Result:
 is:         -3.61639652169997315609e-301  -0x1.f0000000000000000000p-999
 should be:  -3.61639652169997315609e-301  -0x1.f0000000000003e00000p-999
 difference:  1.00375167114140993909e-317   0x0.00000001f00000000000p-1022
 ulp       :  2031616.0000
 max.ulp   :  0.0000
Failure: Test: Imaginary part of: casin (0x0.ffffffffffffffffffffffffffcp0 +
0x1.fp-1025 i) == 1.570796326794896462222075823262245502760 +
3.432186888910770473784103112009399360940e-293 i
Result:
 is:          3.43218688891077037812e-293   0x1.5eb99734b41ee0000000p-972
 should be:   3.43218688891077039008e-293   0x1.5eb99734b41ee2c06d63p-972
 difference:  9.56666723728629431678e-310   0x0.0b01b58ceb2ed0000000p-1022
 ulp       :  193631500546797.0000
 max.ulp   :  0.0000
Failure: Test: Imaginary part of: casin (-0x0.ffffffffffffffffffffffffffcp0 +
0x1.fp-1025 i) == -1.570796326794896462222075823262245502760 +
3.432186888910770473784103112009399360940e-293 i
Result:
 is:          3.43218688891077037812e-293   0x1.5eb99734b41ee0000000p-972
 should be:   3.43218688891077039008e-293   0x1.5eb99734b41ee2c06d63p-972
 difference:  9.56666723728629431678e-310   0x0.0b01b58ceb2ed0000000p-1022
 ulp       :  193631500546797.0000
 max.ulp   :  0.0000
Failure: Test: Imaginary part of: casin (0x0.ffffffffffffffffffffffffffcp0 -
0x1.fp-1025 i) == 1.570796326794896462222075823262245502760 -
3.432186888910770473784103112009399360940e-293 i
Result:
 is:         -3.43218688891077037812e-293  -0x1.5eb99734b41ee0000000p-972
 should be:  -3.43218688891077039008e-293  -0x1.5eb99734b41ee2c06d63p-972
 difference:  9.56666723728629431678e-310   0x0.0b01b58ceb2ed0000000p-1022
 ulp       :  193631500546797.0000
 max.ulp   :  0.0000
Failure: Test: Imaginary part of: casin (-0x0.ffffffffffffffffffffffffffcp0 -
0x1.fp-1025 i) == -1.570796326794896462222075823262245502760 -
3.432186888910770473784103112009399360940e-293 i
Result:
 is:         -3.43218688891077037812e-293  -0x1.5eb99734b41ee0000000p-972
 should be:  -3.43218688891077039008e-293  -0x1.5eb99734b41ee2c06d63p-972
 difference:  9.56666723728629431678e-310   0x0.0b01b58ceb2ed0000000p-1022
 ulp       :  193631500546797.0000
 max.ulp   :  0.0000
Maximal error of real part of: casin
 is      : 1 ulp
 accepted: 1 ulp
Maximal error of imaginary part of: casin
 is      : 193631500546797 ulp
 accepted: 1 ulp
Failure: Test: Real part of: casinh (0x1.fp-1025 + 0x0.fffffffffffff8p0 i) ==
3.616396521699973256461764099945789620604e-301 +
1.570796311893735425383665303776316016594 i
Result:
 is:          3.61639652169997315609e-301   0x1.f0000000000000000000p-999
 should be:   3.61639652169997315609e-301   0x1.f0000000000003e00000p-999
 difference:  1.00375167114140993909e-317   0x0.00000001f00000000000p-1022
 ulp       :  2031616.0000
 max.ulp   :  0.0000
Failure: Test: Real part of: casinh (0x1.fp-1025 - 0x0.fffffffffffff8p0 i) ==
3.616396521699973256461764099945789620604e-301 -
1.570796311893735425383665303776316016594 i
Result:
 is:          3.61639652169997315609e-301   0x1.f0000000000000000000p-999
 should be:   3.61639652169997315609e-301   0x1.f0000000000003e00000p-999
 difference:  1.00375167114140993909e-317   0x0.00000001f00000000000p-1022
 ulp       :  2031616.0000
 max.ulp   :  0.0000
Failure: Test: Real part of: casinh (-0x1.fp-1025 + 0x0.fffffffffffff8p0 i) ==
-3.616396521699973256461764099945789620604e-301 +
1.570796311893735425383665303776316016594 i
Result:
 is:         -3.61639652169997315609e-301  -0x1.f0000000000000000000p-999
 should be:  -3.61639652169997315609e-301  -0x1.f0000000000003e00000p-999
 difference:  1.00375167114140993909e-317   0x0.00000001f00000000000p-1022
 ulp       :  2031616.0000
 max.ulp   :  0.0000
Failure: Test: Real part of: casinh (-0x1.fp-1025 - 0x0.fffffffffffff8p0 i) ==
-3.616396521699973256461764099945789620604e-301 -
1.570796311893735425383665303776316016594 i
Result:
 is:         -3.61639652169997315609e-301  -0x1.f0000000000000000000p-999
 should be:  -3.61639652169997315609e-301  -0x1.f0000000000003e00000p-999
 difference:  1.00375167114140993909e-317   0x0.00000001f00000000000p-1022
 ulp       :  2031616.0000
 max.ulp   :  0.0000
Failure: Test: Real part of: casinh (0x1.fp-1025 +
0x0.ffffffffffffffffffffffffffcp0 i) ==
3.432186888910770473784103112009399360940e-293 +
1.570796326794896462222075823262245502760 i
Result:
 is:          3.43218688891077037812e-293   0x1.5eb99734b41ee0000000p-972
 should be:   3.43218688891077039008e-293   0x1.5eb99734b41ee2c06d63p-972
 difference:  9.56666723728629431678e-310   0x0.0b01b58ceb2ed0000000p-1022
 ulp       :  193631500546797.0000
 max.ulp   :  0.0000
Failure: Test: Real part of: casinh (0x1.fp-1025 -
0x0.ffffffffffffffffffffffffffcp0 i) ==
3.432186888910770473784103112009399360940e-293 -
1.570796326794896462222075823262245502760 i
Result:
 is:          3.43218688891077037812e-293   0x1.5eb99734b41ee0000000p-972
 should be:   3.43218688891077039008e-293   0x1.5eb99734b41ee2c06d63p-972
 difference:  9.56666723728629431678e-310   0x0.0b01b58ceb2ed0000000p-1022
 ulp       :  193631500546797.0000
 max.ulp   :  0.0000
Failure: Test: Real part of: casinh (-0x1.fp-1025 +
0x0.ffffffffffffffffffffffffffcp0 i) ==
-3.432186888910770473784103112009399360940e-293 +
1.570796326794896462222075823262245502760 i
Result:
 is:         -3.43218688891077037812e-293  -0x1.5eb99734b41ee0000000p-972
 should be:  -3.43218688891077039008e-293  -0x1.5eb99734b41ee2c06d63p-972
 difference:  9.56666723728629431678e-310   0x0.0b01b58ceb2ed0000000p-1022
 ulp       :  193631500546797.0000
 max.ulp   :  0.0000
Failure: Test: Real part of: casinh (-0x1.fp-1025 -
0x0.ffffffffffffffffffffffffffcp0 i) ==
-3.432186888910770473784103112009399360940e-293 -
1.570796326794896462222075823262245502760 i
Result:
 is:         -3.43218688891077037812e-293  -0x1.5eb99734b41ee0000000p-972
 should be:  -3.43218688891077039008e-293  -0x1.5eb99734b41ee2c06d63p-972
 difference:  9.56666723728629431678e-310   0x0.0b01b58ceb2ed0000000p-1022
 ulp       :  193631500546797.0000
 max.ulp   :  0.0000
Maximal error of real part of: casinh
 is      : 193631500546797 ulp
 accepted: 1 ulp
Maximal error of imaginary part of: casinh
 is      : 1 ulp
 accepted: 1 ulp

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]