public class MoneyPerMass extends DoubleScalar.Rel<MoneyPerMassUnit> implements Relative
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2015-10-07 11:49:36 +0200 (Wed, 07 Oct 2015) $, @version $Revision: 92 $, by $Author: averbraeck $,
initial version Sep 5, 2015
DoubleScalar.Abs<U extends Unit<U>>, DoubleScalar.Rel<U extends Unit<U>>si| Constructor and Description |
|---|
MoneyPerMass(double value,
MoneyPerMassUnit unit)
Construct MoneyPerMass scalar.
|
MoneyPerMass(DoubleScalar.Rel<MoneyPerMassUnit> value)
Construct MoneyPerMass scalar.
|
| Modifier and Type | Method and Description |
|---|---|
MoneyPerMass |
abs()
Set the value(s) to their absolute value.
|
MoneyPerMass |
acos()
Set the value(s) to the arc cosine of the value(s); the resulting angle is in the range 0.0 through pi.
|
MoneyPerMass |
asin()
Set the value(s) to the arc sine of the value(s); the resulting angle is in the range -pi/2 through pi/2.
|
MoneyPerMass |
atan()
Set the value(s) to the arc tangent of the value(s); the resulting angle is in the range -pi/2 through pi/2.
|
MoneyPerMass |
cbrt()
Set the value(s) to the(ir) cube root.
|
MoneyPerMass |
ceil()
Set the value(s) to the smallest (closest to negative infinity) value(s) that are greater than or equal to the argument
and equal to a mathematical integer.
|
MoneyPerMass |
cos()
Set the value(s) to the trigonometric cosine of the value(s).
|
MoneyPerMass |
cosh()
Set the value(s) to the hyperbolic cosine of the value(s).
|
MoneyPerMass |
divideBy(double divisor)
Scale the value(s) by the inverse of a factor; i.e.
|
Dimensionless.Rel |
divideBy(MoneyPerMass v)
Calculate the division of MoneyPerMass and MoneyPerMass, which results in a Dimensionless scalar.
|
MoneyPerMass |
exp()
Set the value(s) to Euler's number e raised to the power of the value(s).
|
MoneyPerMass |
expm1()
Set the value(s) to Euler's number e raised to the power of the value(s) minus 1 (e^x - 1).
|
MoneyPerMass |
floor()
Set the value(s) to the largest (closest to positive infinity) value(s) that are less than or equal to the argument and
equal to a mathematical integer.
|
static MoneyPerMass |
interpolate(MoneyPerMass zero,
MoneyPerMass one,
double ratio)
Interpolate between two values.
|
MoneyPerMass |
inv()
Set the value(s) to the complement (1.0/x) of the value(s).
|
MoneyPerMass |
log()
Set the value(s) to the natural logarithm (base e) of the value(s).
|
MoneyPerMass |
log10()
Set the value(s) to the base 10 logarithm of the value(s).
|
MoneyPerMass |
log1p()
Set the value(s) to the natural logarithm of the sum of the value(s) and 1.
|
MoneyPerMass |
minus(MoneyPerMass v)
Relative scalar minus Relative scalar = Relative scalar.
|
MoneyPerMass |
multiplyBy(double factor)
Scale the value(s) by a factor.
|
Money |
multiplyBy(Mass v)
Calculate the multiplication of MoneyPerMass and Mass, which results in a Money scalar.
|
MoneyPerMass |
plus(MoneyPerMass v)
Relative scalar plus Relative scalar = Relative scalar.
|
MoneyPerMass |
pow(double x)
Set the value(s) to the value(s) raised to the power of the argument.
|
MoneyPerMass |
rint()
Set the value(s) to the value(s) that are closest in value to the argument and equal to a mathematical integer.
|
MoneyPerMass |
round()
Set the value(s) to the closest long to the argument with ties rounding up.
|
MoneyPerMass |
signum()
Set the value(s) to the signum function of the value(s); zero if the argument is zero, 1.0 if the argument is greater
than zero, -1.0 if the argument is less than zero.
|
MoneyPerMass |
sin()
Set the value(s) to the trigonometric sine of the value(s).
|
MoneyPerMass |
sinh()
Set the value(s) to the hyperbolic sine of the value(s).
|
MoneyPerMass |
sqrt()
Set the value(s) to the correctly rounded positive square root of the value(s).
|
MoneyPerMass |
tan()
Set the value(s) to the trigonometric tangent of the value(s).
|
MoneyPerMass |
tanh()
Set the value(s) to the hyperbolic tangent of the value(s).
|
MoneyPerMass |
toDegrees()
Set the value(s) to approximately equivalent angle(s) measured in degrees.
|
MoneyPerMass |
toRadians()
Set the value(s) to approximately equivalent angle(s) measured in radians.
|
compareTo, eq, ge, getSI, gt, le, lt, minus, ne, plusdivide, divide, doubleValue, equals, floatValue, getInUnit, getInUnit, hashCode, interpolate, interpolate, intValue, longValue, minus, minus, minus, multiply, multiply, plus, plus, plus, toString, toString, toString, toStringexpressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelativebyteValue, shortValuepublic MoneyPerMass(double value,
MoneyPerMassUnit unit)
value - double valueunit - unit for the double valuepublic MoneyPerMass(DoubleScalar.Rel<MoneyPerMassUnit> value)
value - Scalar from which to construct this instancepublic static MoneyPerMass interpolate(MoneyPerMass zero, MoneyPerMass one, double ratio)
zero - the low valueone - the high valueratio - the ratio between 0 and 1, inclusivepublic final MoneyPerMass abs()
abs in interface MathFunctions<DoubleScalar<MoneyPerMassUnit>>abs in class DoubleScalar.Rel<MoneyPerMassUnit>public final MoneyPerMass acos()
acos in interface MathFunctions<DoubleScalar<MoneyPerMassUnit>>acos in class DoubleScalar.Rel<MoneyPerMassUnit>public final MoneyPerMass asin()
asin in interface MathFunctions<DoubleScalar<MoneyPerMassUnit>>asin in class DoubleScalar.Rel<MoneyPerMassUnit>public final MoneyPerMass atan()
atan in interface MathFunctions<DoubleScalar<MoneyPerMassUnit>>atan in class DoubleScalar.Rel<MoneyPerMassUnit>public final MoneyPerMass cbrt()
cbrt in interface MathFunctions<DoubleScalar<MoneyPerMassUnit>>cbrt in class DoubleScalar.Rel<MoneyPerMassUnit>public final MoneyPerMass ceil()
ceil in interface MathFunctions<DoubleScalar<MoneyPerMassUnit>>ceil in class DoubleScalar.Rel<MoneyPerMassUnit>public final MoneyPerMass cos()
cos in interface MathFunctions<DoubleScalar<MoneyPerMassUnit>>cos in class DoubleScalar.Rel<MoneyPerMassUnit>public final MoneyPerMass cosh()
cosh in interface MathFunctions<DoubleScalar<MoneyPerMassUnit>>cosh in class DoubleScalar.Rel<MoneyPerMassUnit>public final MoneyPerMass exp()
exp in interface MathFunctions<DoubleScalar<MoneyPerMassUnit>>exp in class DoubleScalar.Rel<MoneyPerMassUnit>public final MoneyPerMass expm1()
expm1 in interface MathFunctions<DoubleScalar<MoneyPerMassUnit>>expm1 in class DoubleScalar.Rel<MoneyPerMassUnit>public final MoneyPerMass floor()
floor in interface MathFunctions<DoubleScalar<MoneyPerMassUnit>>floor in class DoubleScalar.Rel<MoneyPerMassUnit>public final MoneyPerMass log()
log in interface MathFunctions<DoubleScalar<MoneyPerMassUnit>>log in class DoubleScalar.Rel<MoneyPerMassUnit>public final MoneyPerMass log10()
log10 in interface MathFunctions<DoubleScalar<MoneyPerMassUnit>>log10 in class DoubleScalar.Rel<MoneyPerMassUnit>public final MoneyPerMass log1p()
log1p in interface MathFunctions<DoubleScalar<MoneyPerMassUnit>>log1p in class DoubleScalar.Rel<MoneyPerMassUnit>public final MoneyPerMass rint()
rint in interface MathFunctions<DoubleScalar<MoneyPerMassUnit>>rint in class DoubleScalar.Rel<MoneyPerMassUnit>public final MoneyPerMass round()
round in interface MathFunctions<DoubleScalar<MoneyPerMassUnit>>round in class DoubleScalar.Rel<MoneyPerMassUnit>public final MoneyPerMass signum()
signum in interface MathFunctions<DoubleScalar<MoneyPerMassUnit>>signum in class DoubleScalar.Rel<MoneyPerMassUnit>public final MoneyPerMass sin()
sin in interface MathFunctions<DoubleScalar<MoneyPerMassUnit>>sin in class DoubleScalar.Rel<MoneyPerMassUnit>public final MoneyPerMass sinh()
sinh in interface MathFunctions<DoubleScalar<MoneyPerMassUnit>>sinh in class DoubleScalar.Rel<MoneyPerMassUnit>public final MoneyPerMass sqrt()
sqrt in interface MathFunctions<DoubleScalar<MoneyPerMassUnit>>sqrt in class DoubleScalar.Rel<MoneyPerMassUnit>public final MoneyPerMass tan()
tan in interface MathFunctions<DoubleScalar<MoneyPerMassUnit>>tan in class DoubleScalar.Rel<MoneyPerMassUnit>public final MoneyPerMass tanh()
tanh in interface MathFunctions<DoubleScalar<MoneyPerMassUnit>>tanh in class DoubleScalar.Rel<MoneyPerMassUnit>public final MoneyPerMass inv()
inv in interface MathFunctions<DoubleScalar<MoneyPerMassUnit>>inv in class DoubleScalar.Rel<MoneyPerMassUnit>public final MoneyPerMass toDegrees()
toDegrees in interface MathFunctions<DoubleScalar<MoneyPerMassUnit>>toDegrees in class DoubleScalar.Rel<MoneyPerMassUnit>public final MoneyPerMass toRadians()
toRadians in interface MathFunctions<DoubleScalar<MoneyPerMassUnit>>toRadians in class DoubleScalar.Rel<MoneyPerMassUnit>public final MoneyPerMass pow(double x)
pow in interface MathFunctions<DoubleScalar<MoneyPerMassUnit>>pow in class DoubleScalar.Rel<MoneyPerMassUnit>x - double; the value to use as the powerpublic final MoneyPerMass multiplyBy(double factor)
multiplyBy in interface DoubleMathFunctions<DoubleScalar<MoneyPerMassUnit>>multiplyBy in class DoubleScalar.Rel<MoneyPerMassUnit>factor - double; the multiplierpublic final MoneyPerMass divideBy(double divisor)
divideBy in interface DoubleMathFunctions<DoubleScalar<MoneyPerMassUnit>>divideBy in class DoubleScalar.Rel<MoneyPerMassUnit>divisor - double; the divisorpublic final MoneyPerMass plus(MoneyPerMass v)
v - the value to addpublic final MoneyPerMass minus(MoneyPerMass v)
v - the value to subtractpublic final Dimensionless.Rel divideBy(MoneyPerMass v)
v - MoneyPerMass scalarCopyright © 2015 Delft University of Technology. All rights reserved.