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