View Javadoc
1   package org.djunits.value.vfloat.scalar;
2   
3   import java.util.Locale;
4   
5   import org.djunits.unit.AbsorbedDoseUnit;
6   import org.djunits.unit.AccelerationUnit;
7   import org.djunits.unit.AmountOfSubstanceUnit;
8   import org.djunits.unit.AngleUnit;
9   import org.djunits.unit.AreaUnit;
10  import org.djunits.unit.CatalyticActivityUnit;
11  import org.djunits.unit.DensityUnit;
12  import org.djunits.unit.DimensionlessUnit;
13  import org.djunits.unit.DurationUnit;
14  import org.djunits.unit.ElectricalCapacitanceUnit;
15  import org.djunits.unit.ElectricalChargeUnit;
16  import org.djunits.unit.ElectricalConductanceUnit;
17  import org.djunits.unit.ElectricalCurrentUnit;
18  import org.djunits.unit.ElectricalInductanceUnit;
19  import org.djunits.unit.ElectricalPotentialUnit;
20  import org.djunits.unit.ElectricalResistanceUnit;
21  import org.djunits.unit.EnergyUnit;
22  import org.djunits.unit.EquivalentDoseUnit;
23  import org.djunits.unit.FlowMassUnit;
24  import org.djunits.unit.FlowVolumeUnit;
25  import org.djunits.unit.ForceUnit;
26  import org.djunits.unit.FrequencyUnit;
27  import org.djunits.unit.IlluminanceUnit;
28  import org.djunits.unit.LengthUnit;
29  import org.djunits.unit.LinearDensityUnit;
30  import org.djunits.unit.LuminousFluxUnit;
31  import org.djunits.unit.LuminousIntensityUnit;
32  import org.djunits.unit.MagneticFluxDensityUnit;
33  import org.djunits.unit.MagneticFluxUnit;
34  import org.djunits.unit.MassUnit;
35  import org.djunits.unit.PowerUnit;
36  import org.djunits.unit.PressureUnit;
37  import org.djunits.unit.RadioActivityUnit;
38  import org.djunits.unit.SolidAngleUnit;
39  import org.djunits.unit.SpeedUnit;
40  import org.djunits.unit.TemperatureUnit;
41  import org.djunits.unit.TorqueUnit;
42  import org.djunits.unit.VolumeUnit;
43  import org.djunits.value.function.DimensionlessFunctions;
44  import org.djunits.value.vfloat.scalar.base.FloatScalarRel;
45  import org.djutils.base.NumberParser;
46  import org.djutils.exceptions.Throw;
47  
48  import jakarta.annotation.Generated;
49  
50  /**
51   * Easy access methods for the FloatDimensionless FloatScalar, which is relative by definition.
52   * <p>
53   * Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
54   * BSD-style license. See <a href="https://djunits.org/docs/license.html">DJUNITS License</a>.
55   * </p>
56   * @author <a href="https://www.tudelft.nl/averbraeck">Alexander Verbraeck</a>
57   * @author <a href="https://www.tudelft.nl/staff/p.knoppers/">Peter Knoppers</a>
58   */
59  @Generated(value = "org.djunits.generator.GenerateDJUNIT", date = "2023-07-23T14:06:38.224104100Z")
60  public class FloatDimensionless extends FloatScalarRel<DimensionlessUnit, FloatDimensionless>
61          implements DimensionlessFunctions<DimensionlessUnit, FloatDimensionless>
62  {
63      /** */
64      private static final long serialVersionUID = 20150901L;
65  
66      /** Constant with value zero. */
67      public static final FloatDimensionless ZERO = new FloatDimensionless(0.0f, DimensionlessUnit.SI);
68  
69      /** Constant with value one. */
70      public static final FloatDimensionless ONE = new FloatDimensionless(1.0f, DimensionlessUnit.SI);
71  
72      /** Constant with value NaN. */
73      @SuppressWarnings("checkstyle:constantname")
74      public static final FloatDimensionless NaN = new FloatDimensionless(Float.NaN, DimensionlessUnit.SI);
75  
76      /** Constant with value POSITIVE_INFINITY. */
77      public static final FloatDimensionless POSITIVE_INFINITY =
78              new FloatDimensionless(Float.POSITIVE_INFINITY, DimensionlessUnit.SI);
79  
80      /** Constant with value NEGATIVE_INFINITY. */
81      public static final FloatDimensionless NEGATIVE_INFINITY =
82              new FloatDimensionless(Float.NEGATIVE_INFINITY, DimensionlessUnit.SI);
83  
84      /** Constant with value MAX_VALUE. */
85      public static final FloatDimensionless POS_MAXVALUE = new FloatDimensionless(Float.MAX_VALUE, DimensionlessUnit.SI);
86  
87      /** Constant with value -MAX_VALUE. */
88      public static final FloatDimensionless NEG_MAXVALUE = new FloatDimensionless(-Float.MAX_VALUE, DimensionlessUnit.SI);
89  
90      /**
91       * Construct FloatDimensionless scalar.
92       * @param value float; the float value
93       * @param unit unit for the float value
94       */
95      public FloatDimensionless(final float value, final DimensionlessUnit unit)
96      {
97          super(value, unit);
98      }
99  
100     /**
101      * Construct FloatDimensionless scalar.
102      * @param value Scalar from which to construct this instance
103      */
104     public FloatDimensionless(final FloatDimensionless value)
105     {
106         super(value);
107     }
108 
109     /**
110      * Construct FloatDimensionless scalar using a double value.
111      * @param value double; the double value
112      * @param unit unit for the resulting float value
113      */
114     public FloatDimensionless(final double value, final DimensionlessUnit unit)
115     {
116         super((float) value, unit);
117     }
118 
119     @Override
120     public final FloatDimensionless instantiateRel(final float value, final DimensionlessUnit unit)
121     {
122         return new FloatDimensionless(value, unit);
123     }
124 
125     /**
126      * Construct FloatDimensionless scalar.
127      * @param value float; the float value in SI units
128      * @return the new scalar with the SI value
129      */
130     public static final FloatDimensionless instantiateSI(final float value)
131     {
132         return new FloatDimensionless(value, DimensionlessUnit.SI);
133     }
134 
135     /**
136      * Interpolate between two values.
137      * @param zero the low value
138      * @param one the high value
139      * @param ratio double; the ratio between 0 and 1, inclusive
140      * @return a Scalar at the ratio between
141      */
142     public static FloatDimensionless interpolate(final FloatDimensionless zero, final FloatDimensionless one, final float ratio)
143     {
144         return new FloatDimensionless(zero.getInUnit() * (1 - ratio) + one.getInUnit(zero.getDisplayUnit()) * ratio,
145                 zero.getDisplayUnit());
146     }
147 
148     /**
149      * Return the maximum value of two relative scalars.
150      * @param r1 the first scalar
151      * @param r2 the second scalar
152      * @return the maximum value of two relative scalars
153      */
154     public static FloatDimensionless max(final FloatDimensionless r1, final FloatDimensionless r2)
155     {
156         return r1.gt(r2) ? r1 : r2;
157     }
158 
159     /**
160      * Return the maximum value of more than two relative scalars.
161      * @param r1 the first scalar
162      * @param r2 the second scalar
163      * @param rn the other scalars
164      * @return the maximum value of more than two relative scalars
165      */
166     public static FloatDimensionless max(final FloatDimensionless r1, final FloatDimensionless r2,
167             final FloatDimensionless... rn)
168     {
169         FloatDimensionless maxr = r1.gt(r2) ? r1 : r2;
170         for (FloatDimensionless r : rn)
171         {
172             if (r.gt(maxr))
173             {
174                 maxr = r;
175             }
176         }
177         return maxr;
178     }
179 
180     /**
181      * Return the minimum value of two relative scalars.
182      * @param r1 the first scalar
183      * @param r2 the second scalar
184      * @return the minimum value of two relative scalars
185      */
186     public static FloatDimensionless min(final FloatDimensionless r1, final FloatDimensionless r2)
187     {
188         return r1.lt(r2) ? r1 : r2;
189     }
190 
191     /**
192      * Return the minimum value of more than two relative scalars.
193      * @param r1 the first scalar
194      * @param r2 the second scalar
195      * @param rn the other scalars
196      * @return the minimum value of more than two relative scalars
197      */
198     public static FloatDimensionless min(final FloatDimensionless r1, final FloatDimensionless r2,
199             final FloatDimensionless... rn)
200     {
201         FloatDimensionless minr = r1.lt(r2) ? r1 : r2;
202         for (FloatDimensionless r : rn)
203         {
204             if (r.lt(minr))
205             {
206                 minr = r;
207             }
208         }
209         return minr;
210     }
211 
212     /**
213      * Returns a FloatDimensionless representation of a textual representation of a value with a unit. The String representation
214      * that can be parsed is the double value in the unit, followed by a localized or English abbreviation of the unit. Spaces
215      * are allowed, but not required, between the value and the unit.
216      * @param text String; the textual representation to parse into a FloatDimensionless
217      * @return FloatDimensionless; the Scalar representation of the value in its unit
218      * @throws IllegalArgumentException when the text cannot be parsed
219      * @throws NullPointerException when the text argument is null
220      */
221     public static FloatDimensionless valueOf(final String text)
222     {
223         Throw.whenNull(text, "Error parsing FloatDimensionless: text to parse is null");
224         Throw.when(text.length() == 0, IllegalArgumentException.class, "Error parsing FloatDimensionless: empty text to parse");
225         try
226         {
227             NumberParser numberParser = new NumberParser().lenient().trailing();
228             float f = numberParser.parseFloat(text);
229             String unitString = text.substring(numberParser.getTrailingPosition()).trim();
230             if (unitString.length() != 0)
231                 throw new IllegalArgumentException("Unit " + unitString + " not found for Dimensionless");
232             return new FloatDimensionless(f, DimensionlessUnit.SI);
233         }
234         catch (Exception exception)
235         {
236             throw new IllegalArgumentException("Error parsing FloatDimensionless from " + text + " using Locale "
237                     + Locale.getDefault(Locale.Category.FORMAT), exception);
238         }
239     }
240 
241     /**
242      * Returns a FloatDimensionless based on a value and the textual representation of the unit, which can be localized.
243      * @param value double; the value to use
244      * @param unitString String; the textual representation of the unit
245      * @return FloatDimensionless; the Scalar representation of the value in its unit
246      * @throws IllegalArgumentException when the unit cannot be parsed or is incorrect
247      * @throws NullPointerException when the unitString argument is null
248      */
249     public static FloatDimensionless of(final float value, final String unitString)
250     {
251         Throw.whenNull(unitString, "Error parsing FloatDimensionless: unitString is null");
252         Throw.when(unitString.trim().length() != 0, IllegalArgumentException.class,
253                 "Error parsing FloatDimensionless: non-empty unitString");
254         DimensionlessUnit unit = DimensionlessUnit.SI;
255         return new FloatDimensionless(value, unit);
256     }
257 
258     @Override
259     public String toStringSIPrefixed(final int smallestPower, final int biggestPower)
260     {
261         return toString();
262     }
263 
264     @Override
265     public final FloatDimensionless acos()
266     {
267         return instantiateRel((float) Math.acos(getInUnit()), getDisplayUnit());
268     }
269 
270     @Override
271     public final FloatDimensionless asin()
272     {
273         return instantiateRel((float) Math.asin(getInUnit()), getDisplayUnit());
274     }
275 
276     @Override
277     public final FloatDimensionless atan()
278     {
279         return instantiateRel((float) Math.atan(getInUnit()), getDisplayUnit());
280     }
281 
282     @Override
283     public final FloatDimensionless cbrt()
284     {
285         return instantiateRel((float) Math.cbrt(getInUnit()), getDisplayUnit());
286     }
287 
288     @Override
289     public final FloatDimensionless cos()
290     {
291         return instantiateRel((float) Math.cos(getInUnit()), getDisplayUnit());
292     }
293 
294     @Override
295     public final FloatDimensionless cosh()
296     {
297         return instantiateRel((float) Math.cosh(getInUnit()), getDisplayUnit());
298     }
299 
300     @Override
301     public final FloatDimensionless exp()
302     {
303         return instantiateRel((float) Math.exp(getInUnit()), getDisplayUnit());
304     }
305 
306     @Override
307     public final FloatDimensionless expm1()
308     {
309         return instantiateRel((float) Math.expm1(getInUnit()), getDisplayUnit());
310     }
311 
312     @Override
313     public final FloatDimensionless log()
314     {
315         return instantiateRel((float) Math.log(getInUnit()), getDisplayUnit());
316     }
317 
318     @Override
319     public final FloatDimensionless log10()
320     {
321         return instantiateRel((float) Math.log10(getInUnit()), getDisplayUnit());
322     }
323 
324     @Override
325     public final FloatDimensionless log1p()
326     {
327         return instantiateRel((float) Math.log1p(getInUnit()), getDisplayUnit());
328     }
329 
330     @Override
331     public final FloatDimensionless pow(final double x)
332     {
333         return instantiateRel((float) Math.pow(getInUnit(), x), getDisplayUnit());
334     }
335 
336     @Override
337     public final FloatDimensionless signum()
338     {
339         return instantiateRel(Math.signum(getInUnit()), getDisplayUnit());
340     }
341 
342     @Override
343     public final FloatDimensionless sin()
344     {
345         return instantiateRel((float) Math.sin(getInUnit()), getDisplayUnit());
346     }
347 
348     @Override
349     public final FloatDimensionless sinh()
350     {
351         return instantiateRel((float) Math.sinh(getInUnit()), getDisplayUnit());
352     }
353 
354     @Override
355     public final FloatDimensionless sqrt()
356     {
357         return instantiateRel((float) Math.sqrt(getInUnit()), getDisplayUnit());
358     }
359 
360     @Override
361     public final FloatDimensionless tan()
362     {
363         return instantiateRel((float) Math.tan(getInUnit()), getDisplayUnit());
364     }
365 
366     @Override
367     public final FloatDimensionless tanh()
368     {
369         return instantiateRel((float) Math.tanh(getInUnit()), getDisplayUnit());
370     }
371 
372     @Override
373     public final FloatDimensionless inv()
374     {
375         return instantiateRel(1.0f / getInUnit(), getDisplayUnit());
376     }
377 
378     /**
379      * Calculate the division of FloatDimensionless and FloatDimensionless, which results in a FloatDimensionless scalar.
380      * @param v FloatDimensionless; scalar
381      * @return FloatDimensionless; scalar as a division of FloatDimensionless and FloatDimensionless
382      */
383     public final FloatDimensionless divide(final FloatDimensionless v)
384     {
385         return new FloatDimensionless(this.si / v.si, DimensionlessUnit.SI);
386     }
387 
388     /**
389      * Calculate the multiplication of FloatDimensionless and FloatAbsorbedDose, which results in a FloatAbsorbedDose scalar.
390      * @param v FloatDimensionless; scalar
391      * @return FloatAbsorbedDose; scalar as a multiplication of FloatDimensionless and FloatAbsorbedDose
392      */
393     public final FloatAbsorbedDose times(final FloatAbsorbedDose v)
394     {
395         return new FloatAbsorbedDose(this.si * v.si, AbsorbedDoseUnit.SI);
396     }
397 
398     /**
399      * Calculate the multiplication of FloatDimensionless and FloatAcceleration, which results in a FloatAcceleration scalar.
400      * @param v FloatDimensionless; scalar
401      * @return FloatAcceleration; scalar as a multiplication of FloatDimensionless and FloatAcceleration
402      */
403     public final FloatAcceleration times(final FloatAcceleration v)
404     {
405         return new FloatAcceleration(this.si * v.si, AccelerationUnit.SI);
406     }
407 
408     /**
409      * Calculate the multiplication of FloatDimensionless and FloatAmountOfSubstance, which results in a FloatAmountOfSubstance
410      * scalar.
411      * @param v FloatDimensionless; scalar
412      * @return FloatAmountOfSubstance; scalar as a multiplication of FloatDimensionless and FloatAmountOfSubstance
413      */
414     public final FloatAmountOfSubstance times(final FloatAmountOfSubstance v)
415     {
416         return new FloatAmountOfSubstance(this.si * v.si, AmountOfSubstanceUnit.SI);
417     }
418 
419     /**
420      * Calculate the multiplication of FloatDimensionless and FloatAngle, which results in a FloatAngle scalar.
421      * @param v FloatDimensionless; scalar
422      * @return FloatAngle; scalar as a multiplication of FloatDimensionless and FloatAngle
423      */
424     public final FloatAngle times(final FloatAngle v)
425     {
426         return new FloatAngle(this.si * v.si, AngleUnit.SI);
427     }
428 
429     /**
430      * Calculate the multiplication of FloatDimensionless and FloatSolidAngle, which results in a FloatSolidAngle scalar.
431      * @param v FloatDimensionless; scalar
432      * @return FloatSolidAngle; scalar as a multiplication of FloatDimensionless and FloatSolidAngle
433      */
434     public final FloatSolidAngle times(final FloatSolidAngle v)
435     {
436         return new FloatSolidAngle(this.si * v.si, SolidAngleUnit.SI);
437     }
438 
439     /**
440      * Calculate the multiplication of FloatDimensionless and FloatArea, which results in a FloatArea scalar.
441      * @param v FloatDimensionless; scalar
442      * @return FloatArea; scalar as a multiplication of FloatDimensionless and FloatArea
443      */
444     public final FloatArea times(final FloatArea v)
445     {
446         return new FloatArea(this.si * v.si, AreaUnit.SI);
447     }
448 
449     /**
450      * Calculate the multiplication of FloatDimensionless and FloatCatalyticActivity, which results in a FloatCatalyticActivity
451      * scalar.
452      * @param v FloatDimensionless; scalar
453      * @return FloatCatalyticActivity; scalar as a multiplication of FloatDimensionless and FloatCatalyticActivity
454      */
455     public final FloatCatalyticActivity times(final FloatCatalyticActivity v)
456     {
457         return new FloatCatalyticActivity(this.si * v.si, CatalyticActivityUnit.SI);
458     }
459 
460     /**
461      * Calculate the multiplication of FloatDimensionless and FloatDensity, which results in a FloatDensity scalar.
462      * @param v FloatDimensionless; scalar
463      * @return FloatDensity; scalar as a multiplication of FloatDimensionless and FloatDensity
464      */
465     public final FloatDensity times(final FloatDensity v)
466     {
467         return new FloatDensity(this.si * v.si, DensityUnit.SI);
468     }
469 
470     /**
471      * Calculate the multiplication of FloatDimensionless and FloatDimensionless, which results in a FloatDimensionless scalar.
472      * @param v FloatDimensionless; scalar
473      * @return FloatDimensionless; scalar as a multiplication of FloatDimensionless and FloatDimensionless
474      */
475     public final FloatDimensionless times(final FloatDimensionless v)
476     {
477         return new FloatDimensionless(this.si * v.si, DimensionlessUnit.SI);
478     }
479 
480     /**
481      * Calculate the multiplication of FloatDimensionless and FloatElectricalCapacitance, which results in a
482      * FloatElectricalCapacitance scalar.
483      * @param v FloatDimensionless; scalar
484      * @return FloatElectricalCapacitance; scalar as a multiplication of FloatDimensionless and FloatElectricalCapacitance
485      */
486     public final FloatElectricalCapacitance times(final FloatElectricalCapacitance v)
487     {
488         return new FloatElectricalCapacitance(this.si * v.si, ElectricalCapacitanceUnit.SI);
489     }
490 
491     /**
492      * Calculate the multiplication of FloatDimensionless and FloatElectricalCharge, which results in a FloatElectricalCharge
493      * scalar.
494      * @param v FloatDimensionless; scalar
495      * @return FloatElectricalCharge; scalar as a multiplication of FloatDimensionless and FloatElectricalCharge
496      */
497     public final FloatElectricalCharge times(final FloatElectricalCharge v)
498     {
499         return new FloatElectricalCharge(this.si * v.si, ElectricalChargeUnit.SI);
500     }
501 
502     /**
503      * Calculate the multiplication of FloatDimensionless and FloatElectricalConductance, which results in a
504      * FloatElectricalConductance scalar.
505      * @param v FloatDimensionless; scalar
506      * @return FloatElectricalConductance; scalar as a multiplication of FloatDimensionless and FloatElectricalConductance
507      */
508     public final FloatElectricalConductance times(final FloatElectricalConductance v)
509     {
510         return new FloatElectricalConductance(this.si * v.si, ElectricalConductanceUnit.SI);
511     }
512 
513     /**
514      * Calculate the multiplication of FloatDimensionless and FloatElectricalCurrent, which results in a FloatElectricalCurrent
515      * scalar.
516      * @param v FloatDimensionless; scalar
517      * @return FloatElectricalCurrent; scalar as a multiplication of FloatDimensionless and FloatElectricalCurrent
518      */
519     public final FloatElectricalCurrent times(final FloatElectricalCurrent v)
520     {
521         return new FloatElectricalCurrent(this.si * v.si, ElectricalCurrentUnit.SI);
522     }
523 
524     /**
525      * Calculate the multiplication of FloatDimensionless and FloatElectricalInductance, which results in a
526      * FloatElectricalInductance scalar.
527      * @param v FloatDimensionless; scalar
528      * @return FloatElectricalInductance; scalar as a multiplication of FloatDimensionless and FloatElectricalInductance
529      */
530     public final FloatElectricalInductance times(final FloatElectricalInductance v)
531     {
532         return new FloatElectricalInductance(this.si * v.si, ElectricalInductanceUnit.SI);
533     }
534 
535     /**
536      * Calculate the multiplication of FloatDimensionless and FloatElectricalPotential, which results in a
537      * FloatElectricalPotential scalar.
538      * @param v FloatDimensionless; scalar
539      * @return FloatElectricalPotential; scalar as a multiplication of FloatDimensionless and FloatElectricalPotential
540      */
541     public final FloatElectricalPotential times(final FloatElectricalPotential v)
542     {
543         return new FloatElectricalPotential(this.si * v.si, ElectricalPotentialUnit.SI);
544     }
545 
546     /**
547      * Calculate the multiplication of FloatDimensionless and FloatElectricalResistance, which results in a
548      * FloatElectricalResistance scalar.
549      * @param v FloatDimensionless; scalar
550      * @return FloatElectricalResistance; scalar as a multiplication of FloatDimensionless and FloatElectricalResistance
551      */
552     public final FloatElectricalResistance times(final FloatElectricalResistance v)
553     {
554         return new FloatElectricalResistance(this.si * v.si, ElectricalResistanceUnit.SI);
555     }
556 
557     /**
558      * Calculate the multiplication of FloatDimensionless and FloatEnergy, which results in a FloatEnergy scalar.
559      * @param v FloatDimensionless; scalar
560      * @return FloatEnergy; scalar as a multiplication of FloatDimensionless and FloatEnergy
561      */
562     public final FloatEnergy times(final FloatEnergy v)
563     {
564         return new FloatEnergy(this.si * v.si, EnergyUnit.SI);
565     }
566 
567     /**
568      * Calculate the multiplication of FloatDimensionless and FloatEquivalentDose, which results in a FloatEquivalentDose
569      * scalar.
570      * @param v FloatDimensionless; scalar
571      * @return FloatEquivalentDose; scalar as a multiplication of FloatDimensionless and FloatEquivalentDose
572      */
573     public final FloatEquivalentDose times(final FloatEquivalentDose v)
574     {
575         return new FloatEquivalentDose(this.si * v.si, EquivalentDoseUnit.SI);
576     }
577 
578     /**
579      * Calculate the multiplication of FloatDimensionless and FloatFlowMass, which results in a FloatFlowMass scalar.
580      * @param v FloatDimensionless; scalar
581      * @return FloatFlowMass; scalar as a multiplication of FloatDimensionless and FloatFlowMass
582      */
583     public final FloatFlowMass times(final FloatFlowMass v)
584     {
585         return new FloatFlowMass(this.si * v.si, FlowMassUnit.SI);
586     }
587 
588     /**
589      * Calculate the multiplication of FloatDimensionless and FloatFlowVolume, which results in a FloatFlowVolume scalar.
590      * @param v FloatDimensionless; scalar
591      * @return FloatFlowVolume; scalar as a multiplication of FloatDimensionless and FloatFlowVolume
592      */
593     public final FloatFlowVolume times(final FloatFlowVolume v)
594     {
595         return new FloatFlowVolume(this.si * v.si, FlowVolumeUnit.SI);
596     }
597 
598     /**
599      * Calculate the multiplication of FloatDimensionless and FloatForce, which results in a FloatForce scalar.
600      * @param v FloatDimensionless; scalar
601      * @return FloatForce; scalar as a multiplication of FloatDimensionless and FloatForce
602      */
603     public final FloatForce times(final FloatForce v)
604     {
605         return new FloatForce(this.si * v.si, ForceUnit.SI);
606     }
607 
608     /**
609      * Calculate the multiplication of FloatDimensionless and FloatFrequency, which results in a FloatFrequency scalar.
610      * @param v FloatDimensionless; scalar
611      * @return FloatFrequency; scalar as a multiplication of FloatDimensionless and FloatFrequency
612      */
613     public final FloatFrequency times(final FloatFrequency v)
614     {
615         return new FloatFrequency(this.si * v.si, FrequencyUnit.SI);
616     }
617 
618     /**
619      * Calculate the multiplication of FloatDimensionless and FloatIlluminance, which results in a FloatIlluminance scalar.
620      * @param v FloatDimensionless; scalar
621      * @return FloatIlluminance; scalar as a multiplication of FloatDimensionless and FloatIlluminance
622      */
623     public final FloatIlluminance times(final FloatIlluminance v)
624     {
625         return new FloatIlluminance(this.si * v.si, IlluminanceUnit.SI);
626     }
627 
628     /**
629      * Calculate the multiplication of FloatDimensionless and FloatLength, which results in a FloatLength scalar.
630      * @param v FloatDimensionless; scalar
631      * @return FloatLength; scalar as a multiplication of FloatDimensionless and FloatLength
632      */
633     public final FloatLength times(final FloatLength v)
634     {
635         return new FloatLength(this.si * v.si, LengthUnit.SI);
636     }
637 
638     /**
639      * Calculate the multiplication of FloatDimensionless and FloatLinearDensity, which results in a FloatLinearDensity scalar.
640      * @param v FloatDimensionless; scalar
641      * @return FloatLinearDensity; scalar as a multiplication of FloatDimensionless and FloatLinearDensity
642      */
643     public final FloatLinearDensity times(final FloatLinearDensity v)
644     {
645         return new FloatLinearDensity(this.si * v.si, LinearDensityUnit.SI);
646     }
647 
648     /**
649      * Calculate the multiplication of FloatDimensionless and FloatLuminousFlux, which results in a FloatLuminousFlux scalar.
650      * @param v FloatDimensionless; scalar
651      * @return FloatLuminousFlux; scalar as a multiplication of FloatDimensionless and FloatLuminousFlux
652      */
653     public final FloatLuminousFlux times(final FloatLuminousFlux v)
654     {
655         return new FloatLuminousFlux(this.si * v.si, LuminousFluxUnit.SI);
656     }
657 
658     /**
659      * Calculate the multiplication of FloatDimensionless and FloatLuminousIntensity, which results in a FloatLuminousIntensity
660      * scalar.
661      * @param v FloatDimensionless; scalar
662      * @return FloatLuminousIntensity; scalar as a multiplication of FloatDimensionless and FloatLuminousIntensity
663      */
664     public final FloatLuminousIntensity times(final FloatLuminousIntensity v)
665     {
666         return new FloatLuminousIntensity(this.si * v.si, LuminousIntensityUnit.SI);
667     }
668 
669     /**
670      * Calculate the multiplication of FloatDimensionless and FloatMagneticFluxDensity, which results in a
671      * FloatMagneticFluxDensity scalar.
672      * @param v FloatDimensionless; scalar
673      * @return FloatMagneticFluxDensity; scalar as a multiplication of FloatDimensionless and FloatMagneticFluxDensity
674      */
675     public final FloatMagneticFluxDensity times(final FloatMagneticFluxDensity v)
676     {
677         return new FloatMagneticFluxDensity(this.si * v.si, MagneticFluxDensityUnit.SI);
678     }
679 
680     /**
681      * Calculate the multiplication of FloatDimensionless and FloatMagneticFlux, which results in a FloatMagneticFlux scalar.
682      * @param v FloatDimensionless; scalar
683      * @return FloatMagneticFlux; scalar as a multiplication of FloatDimensionless and FloatMagneticFlux
684      */
685     public final FloatMagneticFlux times(final FloatMagneticFlux v)
686     {
687         return new FloatMagneticFlux(this.si * v.si, MagneticFluxUnit.SI);
688     }
689 
690     /**
691      * Calculate the multiplication of FloatDimensionless and FloatMass, which results in a FloatMass scalar.
692      * @param v FloatDimensionless; scalar
693      * @return FloatMass; scalar as a multiplication of FloatDimensionless and FloatMass
694      */
695     public final FloatMass times(final FloatMass v)
696     {
697         return new FloatMass(this.si * v.si, MassUnit.SI);
698     }
699 
700     /**
701      * Calculate the multiplication of FloatDimensionless and FloatPower, which results in a FloatPower scalar.
702      * @param v FloatDimensionless; scalar
703      * @return FloatPower; scalar as a multiplication of FloatDimensionless and FloatPower
704      */
705     public final FloatPower times(final FloatPower v)
706     {
707         return new FloatPower(this.si * v.si, PowerUnit.SI);
708     }
709 
710     /**
711      * Calculate the multiplication of FloatDimensionless and FloatPressure, which results in a FloatPressure scalar.
712      * @param v FloatDimensionless; scalar
713      * @return FloatPressure; scalar as a multiplication of FloatDimensionless and FloatPressure
714      */
715     public final FloatPressure times(final FloatPressure v)
716     {
717         return new FloatPressure(this.si * v.si, PressureUnit.SI);
718     }
719 
720     /**
721      * Calculate the multiplication of FloatDimensionless and FloatRadioActivity, which results in a FloatRadioActivity scalar.
722      * @param v FloatDimensionless; scalar
723      * @return FloatRadioActivity; scalar as a multiplication of FloatDimensionless and FloatRadioActivity
724      */
725     public final FloatRadioActivity times(final FloatRadioActivity v)
726     {
727         return new FloatRadioActivity(this.si * v.si, RadioActivityUnit.SI);
728     }
729 
730     /**
731      * Calculate the multiplication of FloatDimensionless and FloatSpeed, which results in a FloatSpeed scalar.
732      * @param v FloatDimensionless; scalar
733      * @return FloatSpeed; scalar as a multiplication of FloatDimensionless and FloatSpeed
734      */
735     public final FloatSpeed times(final FloatSpeed v)
736     {
737         return new FloatSpeed(this.si * v.si, SpeedUnit.SI);
738     }
739 
740     /**
741      * Calculate the multiplication of FloatDimensionless and FloatTemperature, which results in a FloatTemperature scalar.
742      * @param v FloatDimensionless; scalar
743      * @return FloatTemperature; scalar as a multiplication of FloatDimensionless and FloatTemperature
744      */
745     public final FloatTemperature times(final FloatTemperature v)
746     {
747         return new FloatTemperature(this.si * v.si, TemperatureUnit.SI);
748     }
749 
750     /**
751      * Calculate the multiplication of FloatDimensionless and FloatDuration, which results in a FloatDuration scalar.
752      * @param v FloatDimensionless; scalar
753      * @return FloatDuration; scalar as a multiplication of FloatDimensionless and FloatDuration
754      */
755     public final FloatDuration times(final FloatDuration v)
756     {
757         return new FloatDuration(this.si * v.si, DurationUnit.SI);
758     }
759 
760     /**
761      * Calculate the multiplication of FloatDimensionless and FloatTorque, which results in a FloatTorque scalar.
762      * @param v FloatDimensionless; scalar
763      * @return FloatTorque; scalar as a multiplication of FloatDimensionless and FloatTorque
764      */
765     public final FloatTorque times(final FloatTorque v)
766     {
767         return new FloatTorque(this.si * v.si, TorqueUnit.SI);
768     }
769 
770     /**
771      * Calculate the multiplication of FloatDimensionless and FloatVolume, which results in a FloatVolume scalar.
772      * @param v FloatDimensionless; scalar
773      * @return FloatVolume; scalar as a multiplication of FloatDimensionless and FloatVolume
774      */
775     public final FloatVolume times(final FloatVolume v)
776     {
777         return new FloatVolume(this.si * v.si, VolumeUnit.SI);
778     }
779 
780     /**
781      * Calculate the division of FloatDimensionless and FloatLength, which results in a FloatLinearDensity scalar.
782      * @param v FloatDimensionless; scalar
783      * @return FloatLinearDensity; scalar as a division of FloatDimensionless and FloatLength
784      */
785     public final FloatLinearDensity divide(final FloatLength v)
786     {
787         return new FloatLinearDensity(this.si / v.si, LinearDensityUnit.SI);
788     }
789 
790     /**
791      * Calculate the division of FloatDimensionless and FloatLinearDensity, which results in a FloatLength scalar.
792      * @param v FloatDimensionless; scalar
793      * @return FloatLength; scalar as a division of FloatDimensionless and FloatLinearDensity
794      */
795     public final FloatLength divide(final FloatLinearDensity v)
796     {
797         return new FloatLength(this.si / v.si, LengthUnit.SI);
798     }
799 
800     /**
801      * Calculate the division of FloatDimensionless and FloatDuration, which results in a FloatFrequency scalar.
802      * @param v FloatDimensionless; scalar
803      * @return FloatFrequency; scalar as a division of FloatDimensionless and FloatDuration
804      */
805     public final FloatFrequency divide(final FloatDuration v)
806     {
807         return new FloatFrequency(this.si / v.si, FrequencyUnit.SI);
808     }
809 
810     /**
811      * Calculate the division of FloatDimensionless and FloatFrequency, which results in a FloatDuration scalar.
812      * @param v FloatDimensionless; scalar
813      * @return FloatDuration; scalar as a division of FloatDimensionless and FloatFrequency
814      */
815     public final FloatDuration divide(final FloatFrequency v)
816     {
817         return new FloatDuration(this.si / v.si, DurationUnit.SI);
818     }
819 
820     /**
821      * Calculate the division of FloatDimensionless and FloatElectricalConductance, which results in a FloatElectricalResistance
822      * scalar.
823      * @param v FloatDimensionless; scalar
824      * @return FloatElectricalResistance; scalar as a division of FloatDimensionless and FloatElectricalConductance
825      */
826     public final FloatElectricalResistance divide(final FloatElectricalConductance v)
827     {
828         return new FloatElectricalResistance(this.si / v.si, ElectricalResistanceUnit.SI);
829     }
830 
831     /**
832      * Calculate the division of FloatDimensionless and FloatElectricalResistance, which results in a FloatElectricalConductance
833      * scalar.
834      * @param v FloatDimensionless; scalar
835      * @return FloatElectricalConductance; scalar as a division of FloatDimensionless and FloatElectricalResistance
836      */
837     public final FloatElectricalConductance divide(final FloatElectricalResistance v)
838     {
839         return new FloatElectricalConductance(this.si / v.si, ElectricalConductanceUnit.SI);
840     }
841 
842     @Override
843     public FloatDimensionless reciprocal()
844     {
845         return FloatDimensionless.instantiateSI(1.0f / this.si);
846     }
847 
848 }