Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

create a mathlab code Ch. 6 Create the Secant Method O solutions submitted (max: Unlimited) Modify the given newtraph function to instead use the secant

image text in transcribed
create a mathlab code
image text in transcribed
Ch. 6 Create the Secant Method O solutions submitted (max: Unlimited) Modify the given newtraph function to instead use the secant method. As a test, you can use the new function on the previous problem and see that it gives you the same solution Function Roset MATLAB Document 1 function (root, ea, iter) secant(func, x0, x1,es) xr,es,maxit, varargin) s, maxit,p1, p2, ...): function (root, ea, iter=newtraph(func,dfunc, xr,esma $newtraph: Newton-Raphson root location zeroes froot ea, iter) = newtraph(func, dfunc, xr,es, maxit,pl. uses Newton-Raphson method to find the root of input: * func = name of function % dfunc = name of derivative of function $ x = initial guess % es = desired relative error (default = 0.0001%) maxit = maximum allowable iterations (default = 50) pl.p2.... = additional parameters used by function % output: root = real root $ ea = approximate relative error (%) % iter = number of iterations if nargin= maxit, break, end end root = xr

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

Step: 3

blur-text-image

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

How To Build A Million Dollar Database

Authors: Michelle Bergquist

1st Edition

0615246842, 978-0615246840

More Books

Students also viewed these Databases questions

Question

Explain the concept of secondary victimization.

Answered: 1 week ago