I have written some code for calculating DC voltage with iterative method for one of my electronics lessons at college. And I wanted to share it with one of my friends at co