Method: Joules.capacitor_potential_energy_v2
- Defined in:
- lib/joules/electricity.rb
.capacitor_potential_energy_v2(capacitance, voltage) ⇒ Float
Note:
There are two other methods for calculating capacitor potential energy.
Calculates the capacitor potential energy given capacitance and voltage.
169 170 171 |
# File 'lib/joules/electricity.rb', line 169 def capacitor_potential_energy_v2(capacitance, voltage) return 0.5 * capacitance * (voltage ** 2) end |