|
JADE v6.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Number
com.dautelle.math.numbers.RealtimeNumber
com.dautelle.physics.Quantity
com.dautelle.physics.Scalar
This class represents a dimensionless quantity. It contains methods for performing basic numeric operations such as the elementary exponential, logarithm and trigonometric functions.
| Nested Class Summary |
| Nested classes inherited from class com.dautelle.physics.Quantity |
Quantity.Factory, Quantity.Value |
| Field Summary | |
static Scalar |
e
Holds the natural logarithmic base. |
static Scalar |
ONE
Represents a Scalar amounting to 1. |
static Scalar |
ZERO
Represents a Scalar amounting to nothing. |
| Constructor Summary | |
protected |
Scalar()
Default constructor (allows for derivation). |
| Method Summary | |
Angle |
acos()
Returns an Angle such as its cosine is this Scalar. |
Angle |
asin()
Returns an Angle such as its sine is this Scalar. |
Angle |
atan()
Returns an Angle such as its tangent is this Scalar. |
Scalar |
exp()
Returns the exponential number e raised to the power of this Scalar. |
Scalar |
log()
Returns the natural logarithm (base e) of this Scalar. |
Scalar |
pow(Scalar exp)
Returns this Scalar raised to the power of the specified
Scalar exponent. |
static Scalar |
scalarOf(Quantity quantity)
Returns the Scalar corresponding to the specified quantity. |
static void |
showAs(Unit unit)
Shows Scalar instances in the specified unit. |
static Scalar |
valueOf(double amount)
Returns the Scalar of specified amount. |
static Scalar |
valueOf(double amount,
double error)
Returns the Scalar of specified amount and measurement error. |
| Methods inherited from class com.dautelle.physics.Quantity |
abs, add, appendTo, approxEquals, approxEquals, compareTo, divide, divide, doubleValue, doubleValue, equals, floatValue, floatValue, getAbsoluteError, getMaximum, getMinimum, getOutputUnit, getRelativeError, getSystemUnit, hashCode, intValue, intValue, inverse, isPossiblyZero, longValue, longValue, multiply, multiply, negate, opposite, plus, pow, random, reciprocal, root, subtract, times, toString, toString, toXml, valueOf, valueOf, valueOf, valueOf |
| Methods inherited from class com.dautelle.math.numbers.RealtimeNumber |
clone, export, isLocalObject, isPoolObject, pow, recycle, toHeap |
| Methods inherited from class java.lang.Number |
byteValue, shortValue |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final Scalar ZERO
Scalar amounting to nothing.
public static final Scalar ONE
Scalar amounting to 1.
public static final Scalar e
| Constructor Detail |
protected Scalar()
| Method Detail |
public static Scalar scalarOf(Quantity quantity)
Scalar corresponding to the specified quantity.
public static Scalar valueOf(double amount)
Scalar of specified amount.
amount - the estimated amount (± 1/2 LSB).
Scalar.public static Scalar valueOf(double amount, double error)
Scalar of specified amount and measurement error.
amount - the estimated amount (± error).error - the measurement error (absolute).
Scalar.public static void showAs(Unit unit)
Scalar instances in the specified unit.
unit - the output unit for Scalar instances.Quantity.getOutputUnit()public Scalar exp()
Scalar.
exp(this)public Scalar log()
Scalar.
log(this)public Scalar pow(Scalar exp)
Scalar raised to the power of the specified
Scalar exponent.
exp - the exponent.
this**exppublic Angle asin()
public Angle acos()
public Angle atan()
|
JADE v6.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||