Method: Joules.energy_v2
- Defined in:
- lib/joules/thermodynamics.rb
.energy_v2(mass, specific_latent_heat) ⇒ Float
Note:
There are two other methods for calculating energy.
Calculates the energy given mass and specific latent heat.
42 43 44 |
# File 'lib/joules/thermodynamics.rb', line 42 def energy_v2(mass, specific_latent_heat) return mass * specific_latent_heat.to_f end |