Question: Problem 6: Write a MATLAB script file to find the first numerical derivative f'(x) of the following a) tan(x) b) sin(2x) c) x'-x+xcos(2x) d) (x+3x?)tan

Problem 6: Write a MATLAB script file to find the first numerical derivative f'(x) of the following a) tan(x) b) sin(2x) c) x'-x+xcos(2x) d) (x+3x?)tan "'(x) where x is in radians and e) In(x) using 1) forward difference scheme 2) backward difference scheme 3) central difference scheme for x = 2.2 and for the following values of h h = [101 102 103 104 105 106 107 10-8 10-9 10-10 10-" 10-12 10-13 10-14). Make a plot on logarithmic scale with h values on x-axis and error on y-axis. Problem 6: Write a MATLAB script file to find the first numerical derivative f'(x) of the following a) tan(x) b) sin(2x) c) x'-x+xcos(2x) d) (x+3x?)tan "'(x) where x is in radians and e) In(x) using 1) forward difference scheme 2) backward difference scheme 3) central difference scheme for x = 2.2 and for the following values of h h = [101 102 103 104 105 106 107 10-8 10-9 10-10 10-" 10-12 10-13 10-14). Make a plot on logarithmic scale with h values on x-axis and error on y-axis
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
