Closed GoogleCodeExporter closed 9 years ago
Original comment by casevh
on 10 Oct 2009 at 6:43
Yes, definitely a bug.
Original comment by fredrik....@gmail.com
on 10 Oct 2009 at 7:10
In the code
if tsign: sman -= 1
else: sman += 1
if ssign: tman -= 1
else: tman += 1
i think it should check if ssign != tsign.
It would be nice to have a test function that automatically tries a lot of
random
arguments with all rounding modes and programmatically verifies the rounding; it
would probably have revealed this a long time ago.
Original comment by fredrik....@gmail.com
on 10 Oct 2009 at 7:21
That fixes the issue. I'll extend the test programs I'm writing for the _mpmath_
routines to also test a large number of random values. I will be testing add,
mult,
div, and sqrt.
Original comment by casevh
on 11 Oct 2009 at 3:17
Fixed in r991.
Original comment by Vinzent.Steinberg@gmail.com
on 5 Nov 2009 at 11:26
Original issue reported on code.google.com by
casevh
on 10 Oct 2009 at 6:42