These instructions are written with the assumption that code will be done in matlab. You might...

90.2K

Verified Solution

Question

Advance Math

These instructions are written with the assumption that codewill be done in matlab. You might find the following built incommands useful: length, plot, xlabel, ylabel, title, legend,fzero, plot, disp, axis, axes, min, max.

3. Root finding; Bisection, Secant, Newton. a) Write your ownversion of the bisection method to solve e 2x ? 10x = 0. Assume theroot is in the interval [0, 1]. Try to use the matlab command”fzero” to accomplish the same thing. b) Write your own version ofsecant method to solve e ?2x ? 7x = 0. Assume the root is in theinterval [1/9, 2/3]. Try to use the matlab command ”fzero” toaccomplish the same thing. c) Write your own version of Newton’smethod to solve x + sin(x) ? cos(2x) = 0.

Answer & Explanation Solved by verified expert
4.1 Ratings (662 Votes)
Matlab code for finding root using Newton Secant andBisection methodclear allclose allFunction for which root have to findfunx exp2x10xdisplaying the functionfprintf For the functiondispfunFinding rootsr1fzerofun0fprintfThe root using fzero is fr1Root using Bisection methodx00 x11 Initial guessmaxit1000 maximum    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students