|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sourceforge.interval.ia_math.RMath
RMath.java -- classes implementing directed rounding of real numbers, as part of the "ia_math library" version 0.1beta1, 10/97
Copyright (C) 2000 Timothy J. Hickey
License: zlib/png
the class RoundedMath contains methods and constants for controling the rounding of the elementary arithmetic operations on floating point numbers.
The current Java 1.1 API does not contain any methods for performing rounded arithmetic besides the default (round toward nearest).
This version strikes a compromise between efficiency and accuracy.
Constructor Summary | |
RMath()
|
Method Summary | |
static double |
acos_hi(double x)
|
static double |
acos_lo(double x)
|
static double |
add_hi(double x,
double y)
|
static double |
add_lo(double x,
double y)
|
static double |
asin_hi(double x)
|
static double |
asin_lo(double x)
|
static double |
atan_hi(double x)
|
static double |
atan_lo(double x)
|
static double |
cos_hi(double x)
|
static double |
cos_lo(double x)
|
static double |
div_hi(double x,
double y)
|
static double |
div_lo(double x,
double y)
|
static double |
exp_hi(double x)
|
static double |
exp_lo(double x)
|
static double |
log_hi(double x)
|
static double |
log_lo(double x)
|
static void |
main(java.lang.String[] argv)
|
static double |
mul_hi(double x,
double y)
|
static double |
mul_lo(double x,
double y)
|
static double |
nextfp(double x)
return the next larger double precision number |
static double |
pow_hi(double x,
double y)
returns upper bound on x**y assuming x>0 |
static double |
pow_lo(double x,
double y)
returns lower bound on x**y assuming x>0 |
static double |
prevfp(double x)
|
static double |
sin_hi(double x)
|
static double |
sin_lo(double x)
|
static double |
sub_hi(double x,
double y)
|
static double |
sub_lo(double x,
double y)
|
static double |
tan_hi(double x)
|
static double |
tan_lo(double x)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RMath()
Method Detail |
public static double nextfp(double x)
public static double prevfp(double x)
public static double add_lo(double x, double y)
public static double add_hi(double x, double y)
public static double sub_lo(double x, double y)
public static double sub_hi(double x, double y)
public static double mul_lo(double x, double y)
public static double mul_hi(double x, double y)
public static double div_lo(double x, double y)
public static double div_hi(double x, double y)
public static double exp_lo(double x)
public static double exp_hi(double x)
public static double log_lo(double x)
public static double log_hi(double x)
public static double sin_lo(double x)
public static double sin_hi(double x)
public static double cos_lo(double x)
public static double cos_hi(double x)
public static double tan_lo(double x)
public static double tan_hi(double x)
public static double asin_lo(double x)
public static double asin_hi(double x)
public static double acos_lo(double x)
public static double acos_hi(double x)
public static double atan_lo(double x)
public static double atan_hi(double x)
public static double pow_lo(double x, double y)
public static double pow_hi(double x, double y)
public static void main(java.lang.String[] argv)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |