public class PolynomialApprox extends Object
Constructor and Description |
---|
PolynomialApprox() |
Modifier and Type | Method and Description |
---|---|
static double |
acos_4(double x)
Fast acos using 4 term polynomial approximation from Abramowitz and Stegun, pg.
|
static double |
acos(double x)
Fast acos using 8 term polynomial approximation from Abramowitz and Stegun, pg.
|
static double |
asin_4(double x)
Fast asin using 4 term polynomial approximation from Abramowitz and Stegun, pg.
|
static double |
asin(double x)
Fast asin using 8 term polynomial approximation from Abramowitz and Stegun, pg.
|
static double |
atan(double x) |
static double |
atan2(double y,
double x) |
public static double acos_4(double x)
Note: Accuracy to within 7 x 10^-5 radians.
x
- public static double acos(double x)
Note: Accuracy to within 3 x 10^-8 radians.
x
- public static double asin_4(double x)
Note: Accuracy to within 7 x 10^-5 radians.
x
- public static double asin(double x)
Note: Accuracy to within 3 x 10^-8 radians.
x
- public static double atan(double x)
public static double atan2(double y, double x)
Copyright © 2016 Metron, Inc.. All rights reserved.