Tabnine Logo
Dimension.root
Code IndexAdd Tabnine to your IDE (free)

How to use
root
method
in
javax.measure.Dimension

Best Java code snippets using javax.measure.Dimension.root (Showing top 5 results out of 315)

origin: apache/sis

/**
 * Tests {@link UnitDimension#root(int)}.
 */
@Test
@DependsOnMethod("testEqualsAndHashCode")
public void testRoot() {
  assertSame("DIMENSIONLESS", DIMENSIONLESS, DIMENSIONLESS.root(4));
  assertSame("AREA",          LENGTH,        AREA.root(2));
  assertSame("VOLUME",        LENGTH,        VOLUME.root(3));
}
origin: tec.uom/uom-se

@Override
public Dimension getDimension() {
 Dimension dimension = QuantityDimension.NONE;
 for (int i = 0; i < this.getUnitCount(); i++) {
  Unit<?> unit = this.getUnit(i);
  if (this.elements != null && unit.getDimension() != null) {
   Dimension d = unit.getDimension().pow(this.getUnitPow(i)).root(this.getUnitRoot(i));
   dimension = dimension.multiply(d);
  }
 }
 return dimension;
}
origin: tec.units/indriya

@Override
public Dimension getDimension() {
 Dimension dimension = QuantityDimension.NONE;
 for (int i = 0; i < this.getUnitCount(); i++) {
  Unit<?> unit = this.getUnit(i);
  if (this.elements != null && unit.getDimension() != null) {
   Dimension d = unit.getDimension().pow(this.getUnitPow(i)).root(this.getUnitRoot(i));
   dimension = dimension.multiply(d);
  }
 }
 return dimension;
}
origin: apache/sis

/**
 * Returns the specific detectivity dimension, which is T^2.5 / (M⋅L).
 */
static Dimension specificDetectivity() {
  return TIME.pow(2).divide(MASS.multiply(LENGTH)).multiply(TIME.root(2));
}
origin: tec.units/unit-ri

@Override
public Dimension getDimension() {
 Dimension dimension = QuantityDimension.NONE;
 for (int i = 0; i < this.getUnitCount(); i++) {
  Unit<?> unit = this.getUnit(i);
  if (this.elements != null && unit.getDimension() != null) {
   Dimension d = unit.getDimension().pow(this.getUnitPow(i)).root(this.getUnitRoot(i));
   if (dimension != null) {
    dimension = dimension.multiply(d);
   } else {
    dimension = d; // XXX hackaround
   }
  }
 }
 return dimension;
}
javax.measureDimensionroot

Popular methods of Dimension

  • getBaseDimensions
  • multiply
  • pow
  • divide

Popular in Java

  • Reading from database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • requestLocationUpdates (LocationManager)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • JFileChooser (javax.swing)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now