|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metsci.glimpse.util.math.fast.PolynomialApprox
public class PolynomialApprox
This class contains polynomial approximations to Trigonometric functions, which are much faster than the Java built-in routines, but not as accurate.
Constructor Summary | |
---|---|
PolynomialApprox()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PolynomialApprox()
Method Detail |
---|
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
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |