public final class TaylorSeries
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static double |
Cos(double x,
int nTerms)
Compute Cos using Taylor Series.
|
static double |
Cosh(double x,
int nTerms)
Compute Cosh using Taylor Series.
|
static double |
Exp(double x,
int nTerms)
Compute Exp using Taylor Series.
|
static double |
Sin(double x,
int nTerms)
Compute Sin using Taylor Series.
|
static double |
Sinh(double x,
int nTerms)
Compute Sinh using Taylor Series.
|
public static double Sin(double x,
int nTerms)
x - An angle, in radians.nTerms - Number of terms.public static double Cos(double x,
int nTerms)
x - An angle, in radians.nTerms - Number of terms.public static double Sinh(double x,
int nTerms)
x - An angle, in radians.nTerms - Number of terms.public static double Cosh(double x,
int nTerms)
x - An angle, in radians.nTerms - Number of terms.public static double Exp(double x,
int nTerms)
x - An angle, in radians.nTerms - Number of terms.