Solving the Grid of Resistors Lab in Julia (Viral B. Shah)

By: JuliaLanguage YouTube

Re-posted from: http://www.youtube.com/watch?v=OFWYPqwVtHU&feature=youtube_gdata

The Grid of Resistors is a classic numerical problem to compute the voltages and the effective resistance of a 2n+1 by 2n+2 grid of 1 ohm resistors if a battery is connected to the two center points. As part of this lab, the problem is solved in Julia in a number of different ways such as a vectorized implementation, a devectorized implementation, and using comprehensions, in order to study the performance characteristics of various methods.

Lab: https://github.com/JuliaLang/julia-tutorial/blob/master/GridOfResistors/GridOfResistors.md
Solution: https://github.com/JuliaLang/julia-tutorial/tree/master/GridOfResistors