public interface Real
SmallDouble
.Modifier and Type | Method and Description |
---|---|
Real |
add(double o)
Adds this Real to a double
|
Real |
add(Real o)
Adds this Real to another
|
void |
addip(Real o)
Adds a Real to this Real in place.
|
void |
addproductip(Real o1,
double o2)
Adds the product of a Real and a double to this Real in place.
|
Real |
divide(double o)
Divides this Real by a double
|
Real |
divide(Real o)
Divides this Real by another one
|
boolean |
greaterThan(double o)
Compares this real to a double
|
boolean |
greaterThan(Real o)
Compares this real to another
|
Real |
inverse()
Returns the inverse of this real (i.e.
|
double |
ln()
Returns the natural logarithm of this Real
|
double |
ln1m()
Returns the natural logithm of one minus the value of this Real
|
Real |
multiply(double o)
Multiplies this Real by a double
|
Real |
multiply(Real o)
Multiplies this Real by another
|
void |
multiplyip(double o)
Multiplies this Real by a double in place.
|
void |
multiplyip(Real o)
Multiplies this Real by another Real in place.
|
Real |
negate()
Negates this real.
|
Real |
subtract(double o)
Subtracts a double from this Real
|
Real |
subtract(Real o)
Subtracts another Real from this one
|
double |
toDouble()
Returns this real as a double.
|
SmallDouble |
toSmallDouble()
Returns this real as a SmallDouble
|
Real multiply(Real o)
o
- The other RealReal multiply(double o)
o
- The doubleReal add(Real o)
o
- The other RealReal add(double o)
o
- The doubledouble ln()
double ln1m()
boolean greaterThan(Real o)
o
- The other realboolean greaterThan(double o)
o
- The doubleReal subtract(Real o)
o
- The other RealReal subtract(double o)
o
- The doubleReal negate()
Real inverse()
Real divide(Real o)
o
- The other RealReal divide(double o)
o
- The doubledouble toDouble()
SmallDouble toSmallDouble()
void addip(Real o)
o
- The real to add.void addproductip(Real o1, double o2)
o1
- The real to be be used in the product.o2
- The double to be used in the product.void multiplyip(Real o)
o
- The real to multiply by.void multiplyip(double o)
o
- The double to multiply by.