I'm not sure you'd have to make methods for the two functions - you'd end up calling them function1(double x) and function2(double x) or f(double x) and g(double x) or something equally not very...