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