Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In Matlab Q2). f(x)-?cos(10*x) + x.^3-29.2-6X + 10 We are going to evaluate f(x) between 0 & 4 using a step size of 0.005. Calculate
In Matlab
Q2). f(x)-?"cos(10*x) + x.^3-29."2-6"X + 10 We are going to evaluate f(x) between 0 & 4 using a step size of 0.005. Calculate the approximate 1st & 2nd order numerical derivatives by the central difference method. Make a new figure with 3 x 1 subplots. Plot f(x) in subplot 1. Plot the 1st derivative in subplot 2, and add a black line at y 0. Plot the 2nd derivative in subplot 3. Remember to add labels, titles etc. Use the zero crossing of the 1st derivative and the sign of the 2nd derivative to plot red triangles on the peaks only, and red inverted triangles on the troughs. Print your plot to a png file and submit with a copy of your commented code. Q2). f(x)-?"cos(10*x) + x.^3-29."2-6"X + 10 We are going to evaluate f(x) between 0 & 4 using a step size of 0.005. Calculate the approximate 1st & 2nd order numerical derivatives by the central difference method. Make a new figure with 3 x 1 subplots. Plot f(x) in subplot 1. Plot the 1st derivative in subplot 2, and add a black line at y 0. Plot the 2nd derivative in subplot 3. Remember to add labels, titles etc. Use the zero crossing of the 1st derivative and the sign of the 2nd derivative to plot red triangles on the peaks only, and red inverted triangles on the troughs. Print your plot to a png file and submit with a copy of your commented codeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started