mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8301396: Port fdlibm expm1 to Java
Reviewed-by: bpb
This commit is contained in:
parent
3be5317b59
commit
34493248c0
4 changed files with 504 additions and 19 deletions
|
@ -2093,7 +2093,9 @@ public final class StrictMath {
|
|||
* @return the value <i>e</i><sup>{@code x}</sup> - 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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue