|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Number net.jinx.slowmath.ADouble
public class ADouble
Implementation of Real that uses double as it's type.
API Stability: Beta.
Constructor Summary | |
---|---|
ADouble(double val)
|
|
ADouble(float val)
|
|
ADouble(long v)
|
|
ADouble(java.lang.Number n)
|
|
ADouble(java.lang.String s)
|
Method Summary | |
---|---|
Real |
abs()
Returns the absolute value of this Real. |
Real |
acos()
Returns the arc cosine of this Real. |
Real |
add(Real v)
Adds this and another Real together, returning the results. |
Real |
asin()
Returns the arc sine of this Real. |
Real |
atan()
Returns the arc tanget of this Real. |
java.math.BigDecimal |
bigDecimalValue()
Type-casts to a BigDecimal. |
byte |
byteValue()
Type-casts to a byte. |
int |
compareTo(java.lang.Object o)
Compares this Real with o. |
int |
compareTo(Real v)
Compares this Real with v. |
Real |
cos()
Returns the cosine of this Real. |
Real |
divide(Real v)
Divides this by another Real together, returning the results. |
double |
doubleValue()
Type-casts to a double. |
Real |
exp()
Returns Euler's number raised by this Real. |
float |
floatValue()
Type-casts to a float. |
int |
intValue()
Type-casts to an int. |
Real |
log()
Returns the natural logarithm of this Real. |
long |
longValue()
Type-casts to a long. |
Real |
max(Real v)
Returns the maximum of this Real and another. |
Real |
min(Real v)
Returns the minimum of this Real and another. |
Real |
multiply(Real v)
Multiplies this and another Real together, returning the results. |
Real |
negate()
Returns the negation of this Real. |
Real |
pow(Real v)
Returns the power of this Real raised by another. |
short |
shortValue()
Type-casts to a short. |
Real |
signum()
Returns the signum of this Real. |
Real |
sin()
Returns the sine of this Real. |
Real |
sqrt()
Returns the square root of this Real. |
Real |
subtract(Real v)
Subtracts another Real from this, returning the results. |
Real |
tan()
Returns the tangent of this Real. |
java.lang.String |
toString()
Type-casts to a String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ADouble(double val)
public ADouble(float val)
public ADouble(java.lang.String s)
public ADouble(java.lang.Number n)
public ADouble(long v)
Method Detail |
---|
public Real add(Real v)
Real
add
in interface Real
public Real subtract(Real v)
Real
subtract
in interface Real
public Real multiply(Real v)
Real
multiply
in interface Real
public Real divide(Real v)
Real
divide
in interface Real
public Real abs()
Real
abs
in interface Real
public Real negate()
Real
negate
in interface Real
public Real signum()
Real
signum
in interface Real
public Real min(Real v)
Real
min
in interface Real
public Real max(Real v)
Real
max
in interface Real
public Real pow(Real v)
Real
pow
in interface Real
public Real sqrt()
Real
sqrt
in interface Real
public Real log()
Real
log
in interface Real
public Real exp()
Real
exp
in interface Real
public Real sin()
Real
sin
in interface Real
public Real cos()
Real
cos
in interface Real
public Real tan()
Real
tan
in interface Real
public Real asin()
Real
asin
in interface Real
public Real acos()
Real
acos
in interface Real
public Real atan()
Real
atan
in interface Real
public byte byteValue()
Real
byteValue
in interface Real
byteValue
in class java.lang.Number
public short shortValue()
Real
shortValue
in interface Real
shortValue
in class java.lang.Number
public int intValue()
Real
intValue
in interface Real
intValue
in class java.lang.Number
public long longValue()
Real
longValue
in interface Real
longValue
in class java.lang.Number
public float floatValue()
Real
floatValue
in interface Real
floatValue
in class java.lang.Number
public double doubleValue()
Real
doubleValue
in interface Real
doubleValue
in class java.lang.Number
public java.math.BigDecimal bigDecimalValue()
Real
bigDecimalValue
in interface Real
public java.lang.String toString()
Real
toString
in interface Real
toString
in class java.lang.Object
public int compareTo(java.lang.Object o)
Real
compareTo
in interface java.lang.Comparable
compareTo
in interface Real
public int compareTo(Real v)
Real
compareTo
in interface Real
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |