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

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

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

final class HeatCapacity extends AbstractMeasure {
  construct( value : Rational, unit: HeatCapacityUnit, displayUnit: HeatCapacityUnit ) {
    super( value, unit, displayUnit, HeatCapacityUnit.BASE )
  }
  construct( value : Rational, unit: HeatCapacityUnit ) {
    this( value, unit, unit )
  }
 
  function multiply( temperature: Temperature ) : Energy {
    return new Energy( toBaseNumber() * temperature.toBaseNumber(), EnergyUnit.BASE, Unit * temperature.Unit )
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy