java.lang.Object
|
+--java.lang.StrictMath
The class
StrictMath contains methods for performing basic
numeric operations such as the elementary exponential, logarithm,
square root, and trigonometric functions.
To help ensure portability of Java programs, the definitions of
many of the numeric functions in this package require that they
produce the same results as certain published algorithms. These
algorithms are available from the well-known network library
netlib as the package "Freely Distributable
Math Library" (fdlibm). These algorithms, which
are written in the C programming language, are then to be
understood as executed with all floating-point operations
following the rules of Java floating-point arithmetic.
The network library may be found on the World Wide Web at:
http://metalab.unc.edu/
The Java math library is defined with respect to the version of
fdlibm dated January 4, 1995. Where
fdlibm provides more than one definition for a
function (such as acos), use the "IEEE 754 core
function" version (residing in a file whose name begins with
the letter e).
| Field Summary | |
static double |
E
copy-> E
|
static double |
PI
copy-> PI
|
| Method Summary | |
static double |
abs(double a)
copy-> StrictMath.abs( )copy-> <double var>=StrictMath.abs(<double a>);
|
static float |
abs(float a)
copy-> StrictMath.abs( )copy-> <float var>=StrictMath.abs(<float a>);
|
static int |
abs(int a)
copy-> StrictMath.abs( )copy-> <int var>=StrictMath.abs(<int a>);
|
static long |
abs(long a)
copy-> StrictMath.abs( )copy-> <long var>=StrictMath.abs(<long a>);
|
static double |
acos(double a)
copy-> StrictMath.acos( )copy-> <double var>=StrictMath.acos(<double a>);
|
static double |
asin(double a)
copy-> StrictMath.asin( )copy-> <double var>=StrictMath.asin(<double a>);
|
static double |
atan(double a)
copy-> StrictMath.atan( )copy-> <double var>=StrictMath.atan(<double a>);
|
static double |
atan2(double a,
double b)
copy-> StrictMath.atan2(, )copy-> <double var>=StrictMath.atan2(<double a>, <double b>);
|
static double |
ceil(double a)
copy-> StrictMath.ceil( )copy-> <double var>=StrictMath.ceil(<double a>);
|
static double |
cos(double a)
copy-> StrictMath.cos( )copy-> <double var>=StrictMath.cos(<double a>);
|
static double |
exp(double a)
copy-> StrictMath.exp( )copy-> <double var>=StrictMath.exp(<double a>);
|
static double |
floor(double a)
copy-> StrictMath.floor( )copy-> <double var>=StrictMath.floor(<double a>);
|
static double |
IEEEremainder(double f1,
double f2)
copy-> StrictMath.IEEEremainder(, )copy-> <double var>=StrictMath.IEEEremainder(<double f1>, <double f2>);
|
static double |
log(double a)
copy-> StrictMath.log( )copy-> <double var>=StrictMath.log(<double a>);
|
static double |
max(double a,
double b)
copy-> StrictMath.max(, )copy-> <double var>=StrictMath.max(<double a>, <double b>);
|
static float |
max(float a,
float b)
copy-> StrictMath.max(, )copy-> <float var>=StrictMath.max(<float a>, <float b>);
|
static int |
max(int a,
int b)
copy-> StrictMath.max(, )copy-> <int var>=StrictMath.max(<int a>, <int b>);
|
static long |
max(long a,
long b)
copy-> StrictMath.max(, )copy-> <long var>=StrictMath.max(<long a>, <long b>);
|
static double |
min(double a,
double b)
copy-> StrictMath.min(, )copy-> <double var>=StrictMath.min(<double a>, <double b>);
|
static float |
min(float a,
float b)
copy-> StrictMath.min(, )copy-> <float var>=StrictMath.min(<float a>, <float b>);
|
static int |
min(int a,
int b)
copy-> StrictMath.min(, )copy-> <int var>=StrictMath.min(<int a>, <int b>);
|
static long |
min(long a,
long b)
copy-> StrictMath.min(, )copy-> <long var>=StrictMath.min(<long a>, <long b>);
|
static double |
pow(double a,
double b)
copy-> StrictMath.pow(, )copy-> <double var>=StrictMath.pow(<double a>, <double b>);
|
static double |
random()
copy-> StrictMath.random()copy-> <double var>=StrictMath.random();
|
static double |
rint(double a)
copy-> StrictMath.rint( )copy-> <double var>=StrictMath.rint(<double a>);
|
static long |
round(double a)
copy-> StrictMath.round( )copy-> <long var>=StrictMath.round(<double a>);
|
static int |
round(float a)
copy-> StrictMath.round( )copy-> <int var>=StrictMath.round(<float a>);
|
static double |
sin(double a)
copy-> StrictMath.sin( )copy-> <double var>=StrictMath.sin(<double a>);
|
static double |
sqrt(double a)
copy-> StrictMath.sqrt( )copy-> <double var>=StrictMath.sqrt(<double a>);
|
static double |
tan(double a)
copy-> StrictMath.tan( )copy-> <double var>=StrictMath.tan(<double a>);
|
static double |
toDegrees(double angrad)
copy-> StrictMath.toDegrees( )copy-> <double var>=StrictMath.toDegrees(<double angrad>);
|
static double |
toRadians(double angdeg)
copy-> StrictMath.toRadians( )copy-> <double var>=StrictMath.toRadians(<double angdeg>);
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |