This is the mail archive of the libc-alpha@sources.redhat.com 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]

arch specific rounding errors?


Ulrich,
    This report came in on the debian-glibc mailing list...

http://lists.debian.org/debian-glibc/2002/debian-glibc-200209/msg00157.html

On debian ppc sid, running glibc 2.2.93 I see the problem as well
with the test program output being...

howarth@bogus:~/mathtest$ ./testrnd 1 2 3 4 5
N: exp(1) = 2.7182818284590451
Z: exp(1) = 2.7182818284590451
D: exp(1) = 2.7182818284590451
U: exp(1) = 1.3099120373162434e+151
N: exp(2) = 7.3890560989306504
Z: exp(2) = 4.0037745305985499
D: exp(2) = 4.0037745305985499
U: exp(2) = 7.3890560989306504
N: exp(3) = 20.085536923187668
Z: exp(3) = 20.085536923187664
D: exp(3) = 20.085536923187664
U: exp(3) = 0.015794933022372046
N: exp(4) = 54.598150033144236
Z: exp(4) = 32.045580221125
D: exp(4) = 32.045580221125
U: exp(4) = 54.598150033144243
N: exp(5) = 148.4131591025766
Z: exp(5) = 148.4131591025766
D: exp(5) = 148.4131591025766
U: exp(5) = 21.332962833859369

Is this a real bug and if so can we get it fixed for glibc 2.3?
                            Jack


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