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