Question: Need help solving this in matlab! 1) Numerical Differentiation a) Evaluate y(x) = cos(x) sin(x) on x (0,210), Ax = 0.1. Then, use the resulting
1) Numerical Differentiation a) Evaluate y(x) = cos(x) sin(x) on x (0,210), Ax = 0.1. Then, use the resulting vector to estimate the following derivatives: First derivative using O(Ax?) accurate scheme for center and boundary. Save on HW5_1.dat Second derivative using 0(AX) accurate scheme for center and boundary. Save on HW5_2.dat First derivative using O(Ax*) accurate scheme for center and O(Ax2) accurate schemes for boundary. Always use the available points that give the greatest accuracy. This mean using 4 different schemes across the domain (Forward 0 (4x2) center 0 (Ax?), center 0(4x4), center 0(4x2) again, and backward 0(4x2)). Save on HW5_3.dat b) Evaluate y(x) = e* on x (0,5), Ax = 0.01. Then use the resulting x and y vectors to do the exact same thing you did in part a)! Save the results on HW5_4.dat, HW5_5.dat, and HW5_6.dat
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
