public class MoneyPerEnergy extends DoubleScalar.Rel<MoneyPerEnergyUnit> 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 |
|---|
MoneyPerEnergy(double value,
MoneyPerEnergyUnit unit)
Construct MoneyPerEnergy scalar.
|
MoneyPerEnergy(DoubleScalar.Rel<MoneyPerEnergyUnit> value)
Construct MoneyPerEnergy scalar.
|
| Modifier and Type | Method and Description |
|---|---|
MoneyPerEnergy |
abs()
Set the value(s) to their absolute value.
|
MoneyPerEnergy |
acos()
Set the value(s) to the arc cosine of the value(s); the resulting angle is in the range 0.0 through pi.
|
MoneyPerEnergy |
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.
|
MoneyPerEnergy |
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.
|
MoneyPerEnergy |
cbrt()
Set the value(s) to the(ir) cube root.
|
MoneyPerEnergy |
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.
|
MoneyPerEnergy |
cos()
Set the value(s) to the trigonometric cosine of the value(s).
|
MoneyPerEnergy |
cosh()
Set the value(s) to the hyperbolic cosine of the value(s).
|
MoneyPerEnergy |
divideBy(double divisor)
Scale the value(s) by the inverse of a factor; i.e.
|
Dimensionless.Rel |
divideBy(MoneyPerEnergy v)
Calculate the division of MoneyPerEnergy and MoneyPerEnergy, which results in a Dimensionless scalar.
|
MoneyPerEnergy |
exp()
Set the value(s) to Euler's number e raised to the power of the value(s).
|
MoneyPerEnergy |
expm1()
Set the value(s) to Euler's number e raised to the power of the value(s) minus 1 (e^x - 1).
|
MoneyPerEnergy |
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 MoneyPerEnergy |
interpolate(MoneyPerEnergy zero,
MoneyPerEnergy one,
double ratio)
Interpolate between two values.
|
MoneyPerEnergy |
inv()
Set the value(s) to the complement (1.0/x) of the value(s).
|
MoneyPerEnergy |
log()
Set the value(s) to the natural logarithm (base e) of the value(s).
|
MoneyPerEnergy |
log10()
Set the value(s) to the base 10 logarithm of the value(s).
|
MoneyPerEnergy |
log1p()
Set the value(s) to the natural logarithm of the sum of the value(s) and 1.
|
MoneyPerEnergy |
minus(MoneyPerEnergy v)
Relative scalar minus Relative scalar = Relative scalar.
|
MoneyPerEnergy |
multiplyBy(double factor)
Scale the value(s) by a factor.
|
Money |
multiplyBy(Energy v)
Calculate the multiplication of MoneyPerEnergy and Energy, which results in a Money scalar.
|
MoneyPerEnergy |
plus(MoneyPerEnergy v)
Relative scalar plus Relative scalar = Relative scalar.
|
MoneyPerEnergy |
pow(double x)
Set the value(s) to the value(s) raised to the power of the argument.
|
MoneyPerEnergy |
rint()
Set the value(s) to the value(s) that are closest in value to the argument and equal to a mathematical integer.
|
MoneyPerEnergy |
round()
Set the value(s) to the closest long to the argument with ties rounding up.
|
MoneyPerEnergy |
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.
|
MoneyPerEnergy |
sin()
Set the value(s) to the trigonometric sine of the value(s).
|
MoneyPerEnergy |
sinh()
Set the value(s) to the hyperbolic sine of the value(s).
|
MoneyPerEnergy |
sqrt()
Set the value(s) to the correctly rounded positive square root of the value(s).
|
MoneyPerEnergy |
tan()
Set the value(s) to the trigonometric tangent of the value(s).
|
MoneyPerEnergy |
tanh()
Set the value(s) to the hyperbolic tangent of the value(s).
|
MoneyPerEnergy |
toDegrees()
Set the value(s) to approximately equivalent angle(s) measured in degrees.
|
MoneyPerEnergy |
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 MoneyPerEnergy(double value,
MoneyPerEnergyUnit unit)
value - double valueunit - unit for the double valuepublic MoneyPerEnergy(DoubleScalar.Rel<MoneyPerEnergyUnit> value)
value - Scalar from which to construct this instancepublic static MoneyPerEnergy interpolate(MoneyPerEnergy zero, MoneyPerEnergy one, double ratio)
zero - the low valueone - the high valueratio - the ratio between 0 and 1, inclusivepublic final MoneyPerEnergy abs()
abs in interface MathFunctions<DoubleScalar<MoneyPerEnergyUnit>>abs in class DoubleScalar.Rel<MoneyPerEnergyUnit>public final MoneyPerEnergy acos()
acos in interface MathFunctions<DoubleScalar<MoneyPerEnergyUnit>>acos in class DoubleScalar.Rel<MoneyPerEnergyUnit>public final MoneyPerEnergy asin()
asin in interface MathFunctions<DoubleScalar<MoneyPerEnergyUnit>>asin in class DoubleScalar.Rel<MoneyPerEnergyUnit>public final MoneyPerEnergy atan()
atan in interface MathFunctions<DoubleScalar<MoneyPerEnergyUnit>>atan in class DoubleScalar.Rel<MoneyPerEnergyUnit>public final MoneyPerEnergy cbrt()
cbrt in interface MathFunctions<DoubleScalar<MoneyPerEnergyUnit>>cbrt in class DoubleScalar.Rel<MoneyPerEnergyUnit>public final MoneyPerEnergy ceil()
ceil in interface MathFunctions<DoubleScalar<MoneyPerEnergyUnit>>ceil in class DoubleScalar.Rel<MoneyPerEnergyUnit>public final MoneyPerEnergy cos()
cos in interface MathFunctions<DoubleScalar<MoneyPerEnergyUnit>>cos in class DoubleScalar.Rel<MoneyPerEnergyUnit>public final MoneyPerEnergy cosh()
cosh in interface MathFunctions<DoubleScalar<MoneyPerEnergyUnit>>cosh in class DoubleScalar.Rel<MoneyPerEnergyUnit>public final MoneyPerEnergy exp()
exp in interface MathFunctions<DoubleScalar<MoneyPerEnergyUnit>>exp in class DoubleScalar.Rel<MoneyPerEnergyUnit>public final MoneyPerEnergy expm1()
expm1 in interface MathFunctions<DoubleScalar<MoneyPerEnergyUnit>>expm1 in class DoubleScalar.Rel<MoneyPerEnergyUnit>public final MoneyPerEnergy floor()
floor in interface MathFunctions<DoubleScalar<MoneyPerEnergyUnit>>floor in class DoubleScalar.Rel<MoneyPerEnergyUnit>public final MoneyPerEnergy log()
log in interface MathFunctions<DoubleScalar<MoneyPerEnergyUnit>>log in class DoubleScalar.Rel<MoneyPerEnergyUnit>public final MoneyPerEnergy log10()
log10 in interface MathFunctions<DoubleScalar<MoneyPerEnergyUnit>>log10 in class DoubleScalar.Rel<MoneyPerEnergyUnit>public final MoneyPerEnergy log1p()
log1p in interface MathFunctions<DoubleScalar<MoneyPerEnergyUnit>>log1p in class DoubleScalar.Rel<MoneyPerEnergyUnit>public final MoneyPerEnergy rint()
rint in interface MathFunctions<DoubleScalar<MoneyPerEnergyUnit>>rint in class DoubleScalar.Rel<MoneyPerEnergyUnit>public final MoneyPerEnergy round()
round in interface MathFunctions<DoubleScalar<MoneyPerEnergyUnit>>round in class DoubleScalar.Rel<MoneyPerEnergyUnit>public final MoneyPerEnergy signum()
signum in interface MathFunctions<DoubleScalar<MoneyPerEnergyUnit>>signum in class DoubleScalar.Rel<MoneyPerEnergyUnit>public final MoneyPerEnergy sin()
sin in interface MathFunctions<DoubleScalar<MoneyPerEnergyUnit>>sin in class DoubleScalar.Rel<MoneyPerEnergyUnit>public final MoneyPerEnergy sinh()
sinh in interface MathFunctions<DoubleScalar<MoneyPerEnergyUnit>>sinh in class DoubleScalar.Rel<MoneyPerEnergyUnit>public final MoneyPerEnergy sqrt()
sqrt in interface MathFunctions<DoubleScalar<MoneyPerEnergyUnit>>sqrt in class DoubleScalar.Rel<MoneyPerEnergyUnit>public final MoneyPerEnergy tan()
tan in interface MathFunctions<DoubleScalar<MoneyPerEnergyUnit>>tan in class DoubleScalar.Rel<MoneyPerEnergyUnit>public final MoneyPerEnergy tanh()
tanh in interface MathFunctions<DoubleScalar<MoneyPerEnergyUnit>>tanh in class DoubleScalar.Rel<MoneyPerEnergyUnit>public final MoneyPerEnergy inv()
inv in interface MathFunctions<DoubleScalar<MoneyPerEnergyUnit>>inv in class DoubleScalar.Rel<MoneyPerEnergyUnit>public final MoneyPerEnergy toDegrees()
toDegrees in interface MathFunctions<DoubleScalar<MoneyPerEnergyUnit>>toDegrees in class DoubleScalar.Rel<MoneyPerEnergyUnit>public final MoneyPerEnergy toRadians()
toRadians in interface MathFunctions<DoubleScalar<MoneyPerEnergyUnit>>toRadians in class DoubleScalar.Rel<MoneyPerEnergyUnit>public final MoneyPerEnergy pow(double x)
pow in interface MathFunctions<DoubleScalar<MoneyPerEnergyUnit>>pow in class DoubleScalar.Rel<MoneyPerEnergyUnit>x - double; the value to use as the powerpublic final MoneyPerEnergy multiplyBy(double factor)
multiplyBy in interface DoubleMathFunctions<DoubleScalar<MoneyPerEnergyUnit>>multiplyBy in class DoubleScalar.Rel<MoneyPerEnergyUnit>factor - double; the multiplierpublic final MoneyPerEnergy divideBy(double divisor)
divideBy in interface DoubleMathFunctions<DoubleScalar<MoneyPerEnergyUnit>>divideBy in class DoubleScalar.Rel<MoneyPerEnergyUnit>divisor - double; the divisorpublic final MoneyPerEnergy plus(MoneyPerEnergy v)
v - the value to addpublic final MoneyPerEnergy minus(MoneyPerEnergy v)
v - the value to subtractpublic final Dimensionless.Rel divideBy(MoneyPerEnergy v)
v - MoneyPerEnergy scalarCopyright © 2015 Delft University of Technology. All rights reserved.