Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.9.0

Bug #3672 Error in sqrt()
Submitted: 2005-03-02 17:36 UTC
From: cmoehrke at netviser dot de Assigned: jmcastagnetto
Status: Closed Package: Math_Integer
PHP Version: 5.0.3 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2005-03-02 17:36 UTC] cmoehrke at netviser dot de
Description: ------------ The implementation of sqrt() is erroneous. Original code (Line 313 of IntegerOp.php) $tmp = bcsqrt(-1, $int1->getValue()); Corrected version: $tmp = bcsqrt($int1->getValue()); Reproduce code: --------------- ./. Expected result: ---------------- ./. Actual result: -------------- ./.

Comments

 [2005-03-02 18:54 UTC] jmcastagnetto
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better. In fact this has been fixed for quite some time in CVS, also there has been a reorganization of the code for Math_Integer. A new release should be forcoming in the next month as I have now more time to clean up and finish the refactoring of the package. Thanks for the heads-up for the old code. Cheers.