We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
org.hipparchus.util.FastMath.expm1(709.85) return -1.0, while java.util.Math.expm1(709.85) return +Infinity.
Issue is present on Hipparchus 1.6 and 2.3. Tested with OpenJDK 1.8
Code to reproduce issue: import org.hipparchus.util.FastMath; public class ExpTest { public static void main(final String[] args) { System.out.println(System.getProperty("java.vm.name") + " " + System.getProperty("java.version")); final double val = 709.85; System.out.println("val=" + val + " expm1: java=" + Math.expm1(val) + " hipp=" + FastMath.expm1(val)); } }
import org.hipparchus.util.FastMath;
public class ExpTest {
public static void main(final String[] args) {
System.out.println(System.getProperty("java.vm.name") + " " + System.getProperty("java.version"));
final double val = 709.85;
System.out.println("val=" + val + " expm1: java=" + Math.expm1(val) + " hipp=" + FastMath.expm1(val));
}
I get : OpenJDK 64-Bit Server VM 1.8.0_261 val=709.85 expm1: java=Infinity hipp=-1.0
The text was updated successfully, but these errors were encountered:
618d963
Fixed in master branch.
Thanks for the report!
Sorry, something went wrong.
No branches or pull requests
Hello,
org.hipparchus.util.FastMath.expm1(709.85) return -1.0, while java.util.Math.expm1(709.85) return +Infinity.
Issue is present on Hipparchus 1.6 and 2.3.
Tested with OpenJDK 1.8
Code to reproduce issue:
import org.hipparchus.util.FastMath;
public class ExpTest {
public static void main(final String[] args) {
System.out.println(System.getProperty("java.vm.name") + " " + System.getProperty("java.version"));
final double val = 709.85;
System.out.println("val=" + val + " expm1: java=" + Math.expm1(val) + " hipp=" + FastMath.expm1(val));
}
}
I get :
OpenJDK 64-Bit Server VM 1.8.0_261
val=709.85 expm1: java=Infinity hipp=-1.0
The text was updated successfully, but these errors were encountered: