Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 4 (programming): Create a MATLAB function named mynewton.m to estimate the root for any arbitrary function f for a given initial guess x0 and

image text in transcribed

Problem 4 (programming): Create a MATLAB function named mynewton.m to estimate the root for any arbitrary function f for a given initial guess x0 and absolute error ?. The function also takes in the maximum number of iterations, max iter, to limit the iteration cycle. Use mynewton.m template posted in homework 3 folder on TritonED as a guide to implement the method. You can construct the function in your own way. The function should return the approxi- mated root xn and the number of iterations n taken to reach the solution. Use the function mynewton.m and set max.iter to be 100 in the following exercises the root in p4a and the corresponding number of iteration in p4lb root in p4c and the corresponding number of iterations in p4d. corresponding number of iterations in p4f (a, b) Find the root of f(z)- 4x3 + 4r2 +4z -5 with o0 and e 10-12. Put (c, d) Find the root of f(x)--r+ sin(x) + 4 with zo-10-8 and ?-10-12. Put the (e, f) Repeat parts (c, d) with xo 10-7 and ? 10-12. Put the root in p4e and the

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Learn To Program Databases With Visual Basic 6

Authors: John Smiley

1st Edition

1902745035, 978-1902745039

More Books

Students also viewed these Databases questions

Question

List and describe additional performance issues.

Answered: 1 week ago