Question: MATLAB (Please do not answer with the f = @(x) tan(x*Pi/180)... code.) Compute the derivative of f(x) = cos(x) at x=Pi/4 using a center difference
MATLAB (Please do not answer with the "f = @(x) tan(x*Pi/180)..." code.)
Compute the derivative of f(x) = cos(x) at x=Pi/4 using a center difference with h = 10-n for
.
I need a Matlab code printing out all 18 derivatives with their errors. Please don't post the code using "f = @(x) tan(x * pi/180)". I need a short and simple code using for loops. I cannot seem to figure it out, for I am not the best with Matlab. Also, if you could explain your code, that would be great. Thanks, in advance.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
