|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Number
net.jinx.slowmath.AFloat
public class AFloat
Implementation of Real that uses float as it's type.
API Stability: Beta.
| Constructor Summary | |
|---|---|
AFloat(double val)
|
|
AFloat(float val)
|
|
AFloat(long v)
|
|
AFloat(java.lang.Number n)
|
|
AFloat(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 AFloat(double val)
public AFloat(float val)
public AFloat(java.lang.String s)
public AFloat(java.lang.Number n)
public AFloat(long v)
| Method Detail |
|---|
public Real add(Real v)
Real
add in interface Realpublic Real subtract(Real v)
Real
subtract in interface Realpublic Real multiply(Real v)
Real
multiply in interface Realpublic Real divide(Real v)
Real
divide in interface Realpublic Real abs()
Real
abs in interface Realpublic Real negate()
Real
negate in interface Realpublic Real signum()
Real
signum in interface Realpublic Real min(Real v)
Real
min in interface Realpublic Real max(Real v)
Real
max in interface Realpublic Real pow(Real v)
Real
pow in interface Realpublic Real sqrt()
Real
sqrt in interface Realpublic Real log()
Real
log in interface Realpublic Real exp()
Real
exp in interface Realpublic Real sin()
Real
sin in interface Realpublic Real cos()
Real
cos in interface Realpublic Real tan()
Real
tan in interface Realpublic Real asin()
Real
asin in interface Realpublic Real acos()
Real
acos in interface Realpublic Real atan()
Real
atan in interface Realpublic byte byteValue()
Real
byteValue in interface RealbyteValue in class java.lang.Numberpublic short shortValue()
Real
shortValue in interface RealshortValue in class java.lang.Numberpublic int intValue()
Real
intValue in interface RealintValue in class java.lang.Numberpublic long longValue()
Real
longValue in interface ReallongValue in class java.lang.Numberpublic float floatValue()
Real
floatValue in interface RealfloatValue in class java.lang.Numberpublic double doubleValue()
Real
doubleValue in interface RealdoubleValue in class java.lang.Numberpublic java.math.BigDecimal bigDecimalValue()
Real
bigDecimalValue in interface Realpublic java.lang.String toString()
Real
toString in interface RealtoString in class java.lang.Objectpublic int compareTo(java.lang.Object o)
Real
compareTo in interface java.lang.ComparablecompareTo in interface Realpublic 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 | |||||||||