Evaluate function for given value

Added evaluate method to MathFunction.  Accepts a double value and returns the a double, evaluating the function for the provided variable value.