Method: Joules.energy_v1
- Defined in:
- lib/joules/thermodynamics.rb
.energy_v1(mass, specific_heat_capacity, temperature_change) ⇒ Float
Note:
There are two other methods for calculating energy.
Calculates the energy given mass, specific heat capacity, and temperature change.
28 29 30 |
# File 'lib/joules/thermodynamics.rb', line 28 def energy_v1(mass, specific_heat_capacity, temperature_change) return mass * specific_heat_capacity * temperature_change.to_f end |