Added methods for calculating relative error in ex. c) + a method to get the analytic solution