PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Math » Math_Integer » Bug #3672

Error in sqrt()

Details

Submitted2005-03-02 17:36 UTC
Fromcmoehrke at netviser dot de
Assignedjmcastagnetto
StatusClosed
PackageMath_Integer
PHP Version5.0.3
OSLinux
Roadmaps(Not assigned)

Comments

[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:
--------------
./.