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