You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2003/06/05 09:20:07 UTC

DO NOT REPLY [Bug 20496] New: - [math] Add sign() method to MathUtils

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20496>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20496

[math] Add sign() method to MathUtils

           Summary: [math] Add sign() method to MathUtils
           Product: Commons
           Version: Nightly Builds
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Sandbox
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: HotFusionMan@Yahoo.com


While implementing Ridders' method for root finding, I encountered a need for a
function that would return +1 or -1 depending on the sign of its argument.  I
started a MathUtility class to hold such things, but Phil beat me to the punch
by submitting MathUtils, so I am submitting additions to his class.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org