mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8302028: Port fdlibm atan2 to Java
Reviewed-by: bpb
This commit is contained in:
parent
07e976ac26
commit
fcaf871408
6 changed files with 615 additions and 28 deletions
|
@ -547,7 +547,9 @@ public final class StrictMath {
|
|||
* in polar coordinates that corresponds to the point
|
||||
* (<i>x</i>, <i>y</i>) in Cartesian coordinates.
|
||||
*/
|
||||
public static native double atan2(double y, double x);
|
||||
public static double atan2(double y, double x) {
|
||||
return FdLibm.Atan2.compute(y, x);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value of the first argument raised to the power of the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue