Kakarot-SSJ4 opened a new pull request #111: Misleading range of input in 
reducePayneHanek() in FastMath.java of util package
URL: https://github.com/apache/commons-math/pull/111
 
 
   The documentation says: `This is good for all inputs 0.0 < x < inf`
   
   However, if we look at the implementation, the variable `idx` will be 
evaluated to a negative value for the range `0.0 <= x < 0.5.`, which will throw 
`ArrayIndexOutOfBoundsException`.
   
   Hence, the range should be `0.5 <= x < inf.`
   
   For example:
   If x = 0.4,
   idx = -1

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to