swisseph
Class SMath
java.lang.Object
swisseph.SMath
- All Implemented Interfaces:
- java.io.Serializable
public class SMath
- extends java.lang.Object
- implements java.io.Serializable
Helper class mapping all mathematical functions and constants to
the java.lang.Math class.
- See Also:
- Serialized Form
|
Field Summary |
static double |
E
|
static double |
PI
|
|
Constructor Summary |
SMath()
|
|
Method Summary |
static double |
abs(double d)
|
static float |
abs(float f)
|
static int |
abs(int i)
|
static long |
abs(long l)
|
static double |
acos(double x)
|
static double |
asin(double x)
|
static double |
atan(double x)
|
static double |
atan2(double y,
double x)
|
static double |
ceil(double a)
|
static double |
cos(double a)
|
static double |
exp(double x)
|
static double |
floor(double a)
|
static double |
IEEEremainder(double x,
double y)
|
static double |
log(double x)
|
static double |
max(double a,
double b)
|
static float |
max(float a,
float b)
|
static int |
max(int a,
int b)
|
static long |
max(long a,
long b)
|
static double |
min(double a,
double b)
|
static float |
min(float a,
float b)
|
static int |
min(int a,
int b)
|
static long |
min(long a,
long b)
|
static double |
pow(double x,
double y)
|
static double |
random()
|
static double |
rint(double a)
|
static long |
round(double d)
|
static int |
round(float f)
|
static double |
sin(double a)
|
static double |
sqrt(double x)
|
static double |
tan(double a)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
E
public static final double E
- See Also:
- Constant Field Values
PI
public static final double PI
- See Also:
- Constant Field Values
SMath
public SMath()
abs
public static int abs(int i)
abs
public static long abs(long l)
abs
public static float abs(float f)
abs
public static double abs(double d)
min
public static int min(int a,
int b)
min
public static long min(long a,
long b)
min
public static float min(float a,
float b)
min
public static double min(double a,
double b)
max
public static int max(int a,
int b)
max
public static long max(long a,
long b)
max
public static float max(float a,
float b)
max
public static double max(double a,
double b)
sin
public static double sin(double a)
cos
public static double cos(double a)
tan
public static double tan(double a)
asin
public static double asin(double x)
acos
public static double acos(double x)
atan
public static double atan(double x)
atan2
public static double atan2(double y,
double x)
exp
public static double exp(double x)
log
public static double log(double x)
sqrt
public static double sqrt(double x)
pow
public static double pow(double x,
double y)
IEEEremainder
public static double IEEEremainder(double x,
double y)
ceil
public static double ceil(double a)
floor
public static double floor(double a)
rint
public static double rint(double a)
round
public static int round(float f)
round
public static long round(double d)
random
public static double random()