Ohm's law expressed in Ruby