commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 24962] - [math] MathUtils.sign(NaN) returns -1 instead of NaN
Date Tue, 25 Nov 2003 14:06:42 GMT
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=24962>.
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=24962

[math] MathUtils.sign(NaN) returns -1 instead of NaN

brent@worden.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
            Summary|MathUtils.sign(NaN) returns |[math] MathUtils.sign(NaN)
                   |-1 instead of NaN           |returns -1 instead of NaN



------- Additional Comments From brent@worden.org  2003-11-25 14:06 -------
I agree that the normal sign function is defined as you state 
(http://mathworld.wolfram.com/Sign.html) and has caused me some confusion.  
However, I don't want to simply change this method as other parts of [math] 
depend on this definition.  My plans are as follows:
1. change the name of sign to positiveSign (any other name suggestions?)
2. create a new sign method based on Mathworld.

If there are any objections, let's here them.

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


Mime
View raw message