public class FloatDimensionless extends AbstractFloatScalarRel<DimensionlessUnit,FloatDimensionless> implements MathFunctionsDimensionless<FloatDimensionless>
FloatScalar.Rel<DimensionlessUnit> value = new FloatScalar.Rel<DimensionlessUnit>(100.0, DimensionlessUnit.SI);we can now write:
FloatDimensionless value = new FloatDimensionless(100.0, DimensionlessUnit.SI);The compiler will automatically recognize which units belong to which quantity, and whether the quantity type and the unit used are compatible.
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2019-01-18 00:35:01 +0100 (Fri, 18 Jan 2019) $, @version $Revision: 324 $, by $Author: averbraeck $,
initial version Sep 5, 2015
Modifier and Type | Field and Description |
---|---|
static FloatDimensionless |
NaN
constant with value NaN.
|
static FloatDimensionless |
NEG_MAXVALUE
constant with value -MAX_VALUE.
|
static FloatDimensionless |
NEGATIVE_INFINITY
constant with value NEGATIVE_INFINITY.
|
static FloatDimensionless |
POS_MAXVALUE
constant with value MAX_VALUE.
|
static FloatDimensionless |
POSITIVE_INFINITY
constant with value POSITIVE_INFINITY.
|
static FloatDimensionless |
ZERO
constant with value zero.
|
si
Constructor and Description |
---|
FloatDimensionless(double value,
DimensionlessUnit unit)
Construct FloatDimensionless scalar using a double value.
|
FloatDimensionless(FloatDimensionless value)
Construct FloatDimensionless scalar.
|
FloatDimensionless(float value,
DimensionlessUnit unit)
Construct FloatDimensionless scalar.
|
Modifier and Type | Method and Description |
---|---|
FloatDimensionless |
acos()
Set the value(s) to the arc cosine of the value(s); the resulting angle is in the range 0.0 through pi.
|
FloatDimensionless |
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.
|
FloatDimensionless |
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.
|
FloatDimensionless |
cbrt()
Set the value(s) to the(ir) cube root.
|
FloatDimensionless |
cos()
Set the value(s) to the trigonometric cosine of the value(s).
|
FloatDimensionless |
cosh()
Set the value(s) to the hyperbolic cosine of the value(s).
|
static FloatDimensionless |
createSI(float value)
Construct FloatDimensionless scalar.
|
FloatDimensionless |
divideBy(FloatDimensionless v)
Calculate the division of FloatDimensionless and FloatDimensionless, which results in a FloatDimensionless scalar.
|
FloatFrequency |
divideBy(FloatDuration v)
Calculate the division of FloatDimensionless and FloatDuration, which results in a FloatFrequency scalar.
|
FloatDuration |
divideBy(FloatFrequency v)
Calculate the division of FloatDimensionless and FloatFrequency, which results in a FloatDuration scalar.
|
FloatLinearDensity |
divideBy(FloatLength v)
Calculate the division of FloatDimensionless and FloatLength, which results in a FloatLinearDensity scalar.
|
FloatLength |
divideBy(FloatLinearDensity v)
Calculate the division of FloatDimensionless and FloatLinearDensity, which results in a FloatLength scalar.
|
FloatDimensionless |
exp()
Set the value(s) to Euler's number e raised to the power of the value(s).
|
FloatDimensionless |
expm1()
Set the value(s) to Euler's number e raised to the power of the value(s) minus 1 (e^x - 1).
|
FloatDimensionless |
instantiateRel(float value,
DimensionlessUnit unit)
Construct a new Relative Immutable FloatScalar of the right type.
|
static FloatDimensionless |
interpolate(FloatDimensionless zero,
FloatDimensionless one,
float ratio)
Interpolate between two values.
|
FloatDimensionless |
inv()
Set the value(s) to the complement (1.0/x) of the value(s).
|
FloatDimensionless |
log()
Set the value(s) to the natural logarithm (base e) of the value(s).
|
FloatDimensionless |
log10()
Set the value(s) to the base 10 logarithm of the value(s).
|
FloatDimensionless |
log1p()
Set the value(s) to the natural logarithm of the sum of the value(s) and 1.
|
static FloatDimensionless |
max(FloatDimensionless r1,
FloatDimensionless r2)
Return the maximum value of two relative scalars.
|
static FloatDimensionless |
max(FloatDimensionless r1,
FloatDimensionless r2,
FloatDimensionless... rn)
Return the maximum value of more than two relative scalars.
|
static FloatDimensionless |
min(FloatDimensionless r1,
FloatDimensionless r2)
Return the minimum value of two relative scalars.
|
static FloatDimensionless |
min(FloatDimensionless r1,
FloatDimensionless r2,
FloatDimensionless... rn)
Return the minimum value of more than two relative scalars.
|
FloatAcceleration |
multiplyBy(FloatAcceleration v)
Calculate the multiplication of FloatDimensionless and FloatAcceleration, which results in a FloatAcceleration scalar.
|
FloatAngle |
multiplyBy(FloatAngle v)
Calculate the multiplication of FloatDimensionless and FloatAngle, which results in a FloatAngle scalar.
|
FloatAngleSolid |
multiplyBy(FloatAngleSolid v)
Calculate the multiplication of FloatDimensionless and FloatAngleSolid, which results in a FloatAngleSolid scalar.
|
FloatArea |
multiplyBy(FloatArea v)
Calculate the multiplication of FloatDimensionless and FloatArea, which results in a FloatArea scalar.
|
FloatDensity |
multiplyBy(FloatDensity v)
Calculate the multiplication of FloatDimensionless and FloatDensity, which results in a FloatDensity scalar.
|
FloatDimensionless |
multiplyBy(FloatDimensionless v)
Calculate the multiplication of FloatDimensionless and FloatDimensionless, which results in a FloatDimensionless scalar.
|
FloatDuration |
multiplyBy(FloatDuration v)
Calculate the multiplication of FloatDimensionless and FloatDuration, which results in a FloatDuration scalar.
|
FloatElectricalCharge |
multiplyBy(FloatElectricalCharge v)
Calculate the multiplication of FloatDimensionless and FloatElectricalCharge, which results in a FloatElectricalCharge
scalar.
|
FloatElectricalCurrent |
multiplyBy(FloatElectricalCurrent v)
Calculate the multiplication of FloatDimensionless and FloatElectricalCurrent, which results in a FloatElectricalCurrent
scalar.
|
FloatElectricalPotential |
multiplyBy(FloatElectricalPotential v)
Calculate the multiplication of FloatDimensionless and FloatElectricalPotential, which results in a
FloatElectricalPotential scalar.
|
FloatElectricalResistance |
multiplyBy(FloatElectricalResistance v)
Calculate the multiplication of FloatDimensionless and FloatElectricalResistance, which results in a
FloatElectricalResistance scalar.
|
FloatEnergy |
multiplyBy(FloatEnergy v)
Calculate the multiplication of FloatDimensionless and FloatEnergy, which results in a FloatEnergy scalar.
|
FloatFlowMass |
multiplyBy(FloatFlowMass v)
Calculate the multiplication of FloatDimensionless and FloatFlowMass, which results in a FloatFlowMass scalar.
|
FloatFlowVolume |
multiplyBy(FloatFlowVolume v)
Calculate the multiplication of FloatDimensionless and FloatFlowVolume, which results in a FloatFlowVolume scalar.
|
FloatForce |
multiplyBy(FloatForce v)
Calculate the multiplication of FloatDimensionless and FloatForce, which results in a FloatForce scalar.
|
FloatFrequency |
multiplyBy(FloatFrequency v)
Calculate the multiplication of FloatDimensionless and FloatFrequency, which results in a FloatFrequency scalar.
|
FloatLength |
multiplyBy(FloatLength v)
Calculate the multiplication of FloatDimensionless and FloatLength, which results in a FloatLength scalar.
|
FloatLinearDensity |
multiplyBy(FloatLinearDensity v)
Calculate the multiplication of FloatDimensionless and FloatLinearDensity, which results in a FloatLinearDensity scalar.
|
FloatMass |
multiplyBy(FloatMass v)
Calculate the multiplication of FloatDimensionless and FloatMass, which results in a FloatMass scalar.
|
FloatMoney |
multiplyBy(FloatMoney v)
Calculate the multiplication of FloatDimensionless and FloatMoney, which results in a FloatMoney scalar.
|
FloatMoneyPerArea |
multiplyBy(FloatMoneyPerArea v)
Calculate the multiplication of FloatDimensionless and FloatMoneyPerArea, which results in a FloatMoneyPerArea scalar.
|
FloatMoneyPerDuration |
multiplyBy(FloatMoneyPerDuration v)
Calculate the multiplication of FloatDimensionless and FloatMoneyPerDuration, which results in a FloatMoneyPerDuration
scalar.
|
FloatMoneyPerEnergy |
multiplyBy(FloatMoneyPerEnergy v)
Calculate the multiplication of FloatDimensionless and FloatMoneyPerEnergy, which results in a FloatMoneyPerEnergy
scalar.
|
FloatMoneyPerLength |
multiplyBy(FloatMoneyPerLength v)
Calculate the multiplication of FloatDimensionless and FloatMoneyPerLength, which results in a FloatMoneyPerLength
scalar.
|
FloatMoneyPerMass |
multiplyBy(FloatMoneyPerMass v)
Calculate the multiplication of FloatDimensionless and FloatMoneyPerMass, which results in a FloatMoneyPerMass scalar.
|
FloatMoneyPerVolume |
multiplyBy(FloatMoneyPerVolume v)
Calculate the multiplication of FloatDimensionless and FloatMoneyPerVolume, which results in a FloatMoneyPerVolume
scalar.
|
FloatPower |
multiplyBy(FloatPower v)
Calculate the multiplication of FloatDimensionless and FloatPower, which results in a FloatPower scalar.
|
FloatPressure |
multiplyBy(FloatPressure v)
Calculate the multiplication of FloatDimensionless and FloatPressure, which results in a FloatPressure scalar.
|
FloatSpeed |
multiplyBy(FloatSpeed v)
Calculate the multiplication of FloatDimensionless and FloatSpeed, which results in a FloatSpeed scalar.
|
FloatTemperature |
multiplyBy(FloatTemperature v)
Calculate the multiplication of FloatDimensionless and FloatTemperature, which results in a FloatTemperature scalar.
|
FloatTorque |
multiplyBy(FloatTorque v)
Calculate the multiplication of FloatDimensionless and FloatTorque, which results in a FloatTorque scalar.
|
FloatVolume |
multiplyBy(FloatVolume v)
Calculate the multiplication of FloatDimensionless and FloatVolume, which results in a FloatVolume scalar.
|
FloatDimensionless |
pow(double x)
Set the value(s) to the value(s) raised to the power of the argument.
|
FloatDimensionless |
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.
|
FloatDimensionless |
sin()
Set the value(s) to the trigonometric sine of the value(s).
|
FloatDimensionless |
sinh()
Set the value(s) to the hyperbolic sine of the value(s).
|
FloatDimensionless |
sqrt()
Set the value(s) to the correctly rounded positive square root of the value(s).
|
FloatDimensionless |
tan()
Set the value(s) to the trigonometric tangent of the value(s).
|
FloatDimensionless |
tanh()
Set the value(s) to the hyperbolic tangent of the value(s).
|
abs, ceil, divideBy, floor, minus, multiplyBy, neg, plus, rint, round
compareTo, doubleValue, eq, eq0, equals, floatValue, ge, ge0, getInUnit, getInUnit, getSI, gt, gt0, hashCode, intValue, le, le0, longValue, lt, lt0, ne, ne0, toString, toString, toString, toString
expressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelative, setDisplayUnit
byteValue, shortValue
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
neg
DIV, MULT, POW
public static final FloatDimensionless ZERO
public static final FloatDimensionless NaN
public static final FloatDimensionless POSITIVE_INFINITY
public static final FloatDimensionless NEGATIVE_INFINITY
public static final FloatDimensionless POS_MAXVALUE
public static final FloatDimensionless NEG_MAXVALUE
public FloatDimensionless(float value, DimensionlessUnit unit)
value
- float; float valueunit
- DimensionlessUnit; unit for the float valuepublic FloatDimensionless(FloatDimensionless value)
value
- FloatDimensionless; Scalar from which to construct this instancepublic FloatDimensionless(double value, DimensionlessUnit unit)
value
- double; double valueunit
- DimensionlessUnit; unit for the resulting float valuepublic final FloatDimensionless instantiateRel(float value, DimensionlessUnit unit)
instantiateRel
in class AbstractFloatScalarRel<DimensionlessUnit,FloatDimensionless>
value
- float; the float valueunit
- U; the unitpublic static final FloatDimensionless createSI(float value)
value
- float; float value in SI unitspublic static FloatDimensionless interpolate(FloatDimensionless zero, FloatDimensionless one, float ratio)
zero
- FloatDimensionless; the low valueone
- FloatDimensionless; the high valueratio
- float; the ratio between 0 and 1, inclusivepublic static FloatDimensionless max(FloatDimensionless r1, FloatDimensionless r2)
r1
- FloatDimensionless; the first scalarr2
- FloatDimensionless; the second scalarpublic static FloatDimensionless max(FloatDimensionless r1, FloatDimensionless r2, FloatDimensionless... rn)
r1
- FloatDimensionless; the first scalarr2
- FloatDimensionless; the second scalarrn
- FloatDimensionless...; the other scalarspublic static FloatDimensionless min(FloatDimensionless r1, FloatDimensionless r2)
r1
- FloatDimensionless; the first scalarr2
- FloatDimensionless; the second scalarpublic static FloatDimensionless min(FloatDimensionless r1, FloatDimensionless r2, FloatDimensionless... rn)
r1
- FloatDimensionless; the first scalarr2
- FloatDimensionless; the second scalarrn
- FloatDimensionless...; the other scalarspublic final FloatDimensionless acos()
acos
in interface MathFunctionsDimensionless<FloatDimensionless>
public final FloatDimensionless asin()
asin
in interface MathFunctionsDimensionless<FloatDimensionless>
public final FloatDimensionless atan()
atan
in interface MathFunctionsDimensionless<FloatDimensionless>
public final FloatDimensionless cbrt()
cbrt
in interface MathFunctionsDimensionless<FloatDimensionless>
public final FloatDimensionless cos()
cos
in interface MathFunctionsDimensionless<FloatDimensionless>
public final FloatDimensionless cosh()
cosh
in interface MathFunctionsDimensionless<FloatDimensionless>
public final FloatDimensionless exp()
exp
in interface MathFunctionsDimensionless<FloatDimensionless>
public final FloatDimensionless expm1()
expm1
in interface MathFunctionsDimensionless<FloatDimensionless>
public final FloatDimensionless log()
log
in interface MathFunctionsDimensionless<FloatDimensionless>
public final FloatDimensionless log10()
log10
in interface MathFunctionsDimensionless<FloatDimensionless>
public final FloatDimensionless log1p()
log1p
in interface MathFunctionsDimensionless<FloatDimensionless>
public final FloatDimensionless pow(double x)
pow
in interface MathFunctionsDimensionless<FloatDimensionless>
x
- double; the value to use as the powerpublic final FloatDimensionless signum()
signum
in interface MathFunctionsDimensionless<FloatDimensionless>
public final FloatDimensionless sin()
sin
in interface MathFunctionsDimensionless<FloatDimensionless>
public final FloatDimensionless sinh()
sinh
in interface MathFunctionsDimensionless<FloatDimensionless>
public final FloatDimensionless sqrt()
sqrt
in interface MathFunctionsDimensionless<FloatDimensionless>
public final FloatDimensionless tan()
tan
in interface MathFunctionsDimensionless<FloatDimensionless>
public final FloatDimensionless tanh()
tanh
in interface MathFunctionsDimensionless<FloatDimensionless>
public final FloatDimensionless inv()
inv
in interface MathFunctionsDimensionless<FloatDimensionless>
public final FloatDimensionless divideBy(FloatDimensionless v)
v
- FloatDimensionless; FloatDimensionless scalarpublic final FloatAcceleration multiplyBy(FloatAcceleration v)
v
- FloatAcceleration; FloatDimensionless scalarpublic final FloatAngle multiplyBy(FloatAngle v)
v
- FloatAngle; FloatDimensionless scalarpublic final FloatAngleSolid multiplyBy(FloatAngleSolid v)
v
- FloatAngleSolid; FloatDimensionless scalarpublic final FloatArea multiplyBy(FloatArea v)
v
- FloatArea; FloatDimensionless scalarpublic final FloatDensity multiplyBy(FloatDensity v)
v
- FloatDensity; FloatDimensionless scalarpublic final FloatDimensionless multiplyBy(FloatDimensionless v)
v
- FloatDimensionless; FloatDimensionless scalarpublic final FloatElectricalCharge multiplyBy(FloatElectricalCharge v)
v
- FloatElectricalCharge; FloatDimensionless scalarpublic final FloatElectricalCurrent multiplyBy(FloatElectricalCurrent v)
v
- FloatElectricalCurrent; FloatDimensionless scalarpublic final FloatElectricalPotential multiplyBy(FloatElectricalPotential v)
v
- FloatElectricalPotential; FloatDimensionless scalarpublic final FloatElectricalResistance multiplyBy(FloatElectricalResistance v)
v
- FloatElectricalResistance; FloatDimensionless scalarpublic final FloatEnergy multiplyBy(FloatEnergy v)
v
- FloatEnergy; FloatDimensionless scalarpublic final FloatFlowMass multiplyBy(FloatFlowMass v)
v
- FloatFlowMass; FloatDimensionless scalarpublic final FloatFlowVolume multiplyBy(FloatFlowVolume v)
v
- FloatFlowVolume; FloatDimensionless scalarpublic final FloatForce multiplyBy(FloatForce v)
v
- FloatForce; FloatDimensionless scalarpublic final FloatFrequency multiplyBy(FloatFrequency v)
v
- FloatFrequency; FloatDimensionless scalarpublic final FloatLength multiplyBy(FloatLength v)
v
- FloatLength; FloatDimensionless scalarpublic final FloatLinearDensity multiplyBy(FloatLinearDensity v)
v
- FloatLinearDensity; FloatDimensionless scalarpublic final FloatMass multiplyBy(FloatMass v)
v
- FloatMass; FloatDimensionless scalarpublic final FloatMoney multiplyBy(FloatMoney v)
v
- FloatMoney; FloatDimensionless scalarpublic final FloatMoneyPerArea multiplyBy(FloatMoneyPerArea v)
v
- FloatMoneyPerArea; FloatDimensionless scalarpublic final FloatMoneyPerEnergy multiplyBy(FloatMoneyPerEnergy v)
v
- FloatMoneyPerEnergy; FloatDimensionless scalarpublic final FloatMoneyPerLength multiplyBy(FloatMoneyPerLength v)
v
- FloatMoneyPerLength; FloatDimensionless scalarpublic final FloatMoneyPerMass multiplyBy(FloatMoneyPerMass v)
v
- FloatMoneyPerMass; FloatDimensionless scalarpublic final FloatMoneyPerDuration multiplyBy(FloatMoneyPerDuration v)
v
- FloatMoneyPerDuration; FloatDimensionless scalarpublic final FloatMoneyPerVolume multiplyBy(FloatMoneyPerVolume v)
v
- FloatMoneyPerVolume; FloatDimensionless scalarpublic final FloatPower multiplyBy(FloatPower v)
v
- FloatPower; FloatDimensionless scalarpublic final FloatPressure multiplyBy(FloatPressure v)
v
- FloatPressure; FloatDimensionless scalarpublic final FloatSpeed multiplyBy(FloatSpeed v)
v
- FloatSpeed; FloatDimensionless scalarpublic final FloatTemperature multiplyBy(FloatTemperature v)
v
- FloatTemperature; FloatDimensionless scalarpublic final FloatDuration multiplyBy(FloatDuration v)
v
- FloatDuration; FloatDimensionless scalarpublic final FloatTorque multiplyBy(FloatTorque v)
v
- FloatTorque; FloatDimensionless scalarpublic final FloatVolume multiplyBy(FloatVolume v)
v
- FloatVolume; FloatDimensionless scalarpublic final FloatLinearDensity divideBy(FloatLength v)
v
- FloatLength; FloatDimensionless scalarpublic final FloatLength divideBy(FloatLinearDensity v)
v
- FloatLinearDensity; FloatDimensionless scalarpublic final FloatFrequency divideBy(FloatDuration v)
v
- FloatDuration; FloatDimensionless scalarpublic final FloatDuration divideBy(FloatFrequency v)
v
- FloatFrequency; FloatDimensionless scalarCopyright © 2015–2019 Delft University of Technology. All rights reserved.