public final class DfpMath extends Object
Modifier and Type | Method and Description |
---|---|
static Dfp |
acos(Dfp aIn)
computes the arc-cosine of the argument.
|
static Dfp |
asin(Dfp a)
computes the arc-sine of the argument.
|
static Dfp |
atan(Dfp a)
computes the arc tangent of the argument
Uses the typical taylor series
but may reduce arguments using the following identity
tan(x+y) = (tan(x) + tan(y)) / (1 - tan(x)*tan(y))
since tan(PI/8) = sqrt(2)-1,
atan(x) = atan( (x - sqrt(2) + 1) / (1+x*sqrt(2) - x) + PI/8.0
|
static Dfp |
cos(Dfp a)
computes the cosine of the argument.
|
static Dfp |
exp(Dfp a)
Computes e to the given power.
|
static Dfp |
log(Dfp a)
Returns the natural logarithm of a.
|
static Dfp |
pow(Dfp x,
Dfp y)
Computes x to the y power.
|
static Dfp |
pow(Dfp base,
int aIn)
Raises base to the power a by successive squaring.
|
static Dfp |
sin(Dfp a)
computes the sine of the argument.
|
static Dfp |
tan(Dfp a)
computes the tangent of the argument.
|
public static Dfp pow(Dfp base, int aIn)
base
- number to raiseaIn
- powerpublic static Dfp exp(Dfp a)
a
- power at which e should be raisedpublic static Dfp log(Dfp a)
a
- number from which logarithm is requestedpublic static Dfp pow(Dfp x, Dfp y)
x
- base to be raisedy
- power to which base should be raisedpublic static Dfp sin(Dfp a)
a
- number from which sine is desiredpublic static Dfp cos(Dfp a)
a
- number from which cosine is desiredpublic static Dfp tan(Dfp a)
a
- number from which tangent is desiredpublic static Dfp atan(Dfp a)
a
- number from which arc-tangent is desiredpublic static Dfp asin(Dfp a)
a
- number from which arc-sine is desiredCopyright © 2020 CNES. All rights reserved.