Method: Joules.power_v4
- Defined in:
- lib/joules/electricity.rb
.power_v4(current, resistance) ⇒ Float
Note:
There are four other methods for calculating power.
Calculates the power given current and resistance.
283 284 285 |
# File 'lib/joules/electricity.rb', line 283 def power_v4(current, resistance) return (current ** 2.0) * resistance end |