don t understant the question.
Calculate the error function for f(x)=tan(x), [-1.25,1.25] for linear, quadratic and cubic shape functions and carry out the calulation using Mathematica or Fortran, C for 10,100 and 1000 elements.
WHat does mean for linear, quadratic and cubic shape functions
It refers to interpolation or means f(x)=tan(x) in 1, 2, u 3 degree
As i understand first i have to replace the function with polinomial in n degree (10, 100 or 1000 by problem specification) and then some how calculate the aproximation
What exactly are your "linear, quadratic and cubic shape functions" --- which nodes are you using to interpolate? Uniformly-spaced with both endpoints? Chebyshev? All at one points? Some other combinations? Or are you minimising some measure of errors over all polynomials of given degree? Or maybe you are using a spline of such functions? Once you know what you are looking at it is just a matter of writing the codes.