All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gw.util.science.Conductance.gs Maven / Gradle / Ivy

There is a newer version: 1.18.2
Show newest version
package gw.util.science

uses gw.util.Rational
uses java.math.RoundingMode
uses java.math.MathContext

final class Conductance extends AbstractMeasure {
  construct( value : Rational, unit: ConductanceUnit, displayUnit: ConductanceUnit ) {
    super( value, unit, displayUnit, ConductanceUnit.BASE )
  }
  construct( value : Rational, unit: ConductanceUnit ) {
    this( value, unit, unit )
  }

  function multiply( potential: Potential ) : Current {
    return new Current( toBaseNumber() * potential.toBaseNumber(), CurrentUnit.BASE, Unit.CurrentUnit )
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy