Problem
Write a macro in VBA to approximate the value of the function f(x)=tan(x) at some nonzero point x in radians, using a Maclaurin series through the second derivative term. Allow the point x to be input using the InputBox command.
Calculate (i) an upper bound for the remainder term Rn, (ii) the exact value of the function at x, (iii) the true error ET and the true relative error ?T. Output all these values to a blank Excel sheet.