Method: Joules.capacitor_potential_energy_v1
- Defined in:
- lib/joules/electricity.rb
.capacitor_potential_energy_v1(charge, voltage) ⇒ Float
Note:
There are two other methods for calculating capacitor potential energy.
Calculates the capacitor potential energy given charge and voltage.
155 156 157 |
# File 'lib/joules/electricity.rb', line 155 def capacitor_potential_energy_v1(charge, voltage) return 0.5 * charge * voltage end |