Simulation of conductors in series in Ruby.