School work for my numerical methods in physics class (in C and Mathematica)