Question: 2a) Using a for loop write a script file to find the root (zero) of the function f(x)0.5x2 +4x + 3 cos(x) +C using Newton's

 2a) Using a for loop write a script file to find

2a) Using a for loop write a script file to find the root (zero) of the function f(x)0.5x2 +4x + 3 cos(x) +C using Newton's method Carry out 5 iterations with initial guess xo-8.0 for C- 5 Print out your final answer only to the screen You must not use the inbuilt MATLAB commands fsolve, fzero, roots, or similar. The formula for Newton's Method is xn+1 X Call the tutor to mark this section. They will want to see your output and your .m file. fr(%) 2b) Now use your Newton's Method code to calculate the root for a range of values of C from C5 to C5. Increase C by steps of 0.5, ie, C5.0, C-4.5, C 5.0. Plot the root obtained for different values of C. Use the same number of iterations and initial guess to find each root as you did for (2a). Call the tutor to mark this section. They will want to see your graph and your m file

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!