Code for Math & Comp Methods course.