8301396: Port fdlibm expm1 to Java

Reviewed-by: bpb
This commit is contained in:
Joe Darcy 2023-02-04 00:48:26 +00:00
parent 3be5317b59
commit 34493248c0
4 changed files with 504 additions and 19 deletions

View file

@ -2093,7 +2093,9 @@ public final class StrictMath {
* @return the value <i>e</i><sup>{@code x}</sup>&nbsp;-&nbsp;1.
* @since 1.5
*/
public static native double expm1(double x);
public static double expm1(double x) {
return FdLibm.Expm1.compute(x);
}
/**
* Returns the natural logarithm of the sum of the argument and 1.