|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcds.astro.AstroMath
public class AstroMath
Trigonometric and a few other functions used in the astronomical context. This class includes also 3x3 matrix manipulation. Extracted from Class Coo
Field Summary | |
---|---|
static double |
ARCSEC
|
static double |
DEG
|
static double[] |
powers
|
Constructor Summary | |
---|---|
AstroMath()
|
Method Summary | |
---|---|
static double |
asinc(double x)
Function asinc(x), inverse function of sinc |
static double |
asind(double x)
sin-1 (inverse function of sine), gives argument in degrees |
static double |
atan2d(double y,
double x)
get the polar angle from 2-D cartesian coordinates |
static double |
atand(double x)
tan-1 (inverse function of tangent), gives argument in degrees |
static double |
atanh(double x)
tanh-1 (inverse function of tanh) |
static double |
cosd(double x)
Cosine when argument in degrees |
static double |
cosh(double x)
Hyperbolic cosine cosh = (exp(x) + exp(-x))/2 |
static double |
dexp(double x)
Compute just 10x |
static double |
dexp(int n)
Compute just 10n |
static double |
log(double x)
Compute the log base 10 |
static double[][] |
m3p(double[][] A,
double[][] B)
3-Matrices Products |
static double[][] |
m3t(double[][] A)
Transposed of a Matrix |
static double |
sinc(double x)
Function sinc(x) = sin(x)/x |
static double |
sind(double x)
Sine when argument in degrees |
static double |
tanh(double x)
Hyperbolic tangent = (exp(x)-exp(-x))/(exp(x)+exp(-x)) |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final double[] powers
public static final double DEG
public static final double ARCSEC
Constructor Detail |
---|
public AstroMath()
Method Detail |
---|
public static final double cosd(double x)
x
- angle in degrees
public static final double sind(double x)
x
- angle in degrees
public static final double asind(double x)
x
- argument
public static final double atand(double x)
x
- argument
public static final double atan2d(double y, double x)
y
- cartesian y coordinatex
- cartesian x coordinate
public static final double cosh(double x)
x
- argument
public static final double tanh(double x)
x
- argument
public static final double atanh(double x)
x
- argument, in range ]-1, 1[ (NaN returned otherwise)
public static final double sinc(double x)
x
- argument (radians)
public static final double asinc(double x)
x
- argument
public static final double dexp(int n)
n
- Power to which to compute the value
public static final double dexp(double x)
x
- Power to which to compute the value
public static final double log(double x)
x
- Number (positive)
public static final double[][] m3p(double[][] A, double[][] B)
A
- 3x3 matrixB
- 3x3 matrix
public static final double[][] m3t(double[][] A)
A
- input matric
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |