Question: Determine the first root of the same function as in the problem 1 by False Positiorn method using initial guess of x,--1 and Xu-0 and

 Determine the first root of the same function as in the

Determine the first root of the same function as in the problem 1 by False Positiorn method using initial guess of x,--1 and Xu-0 and a stopping criterion of 1%. Also, develop an M-file for the False Position method and test it to solve the given problem. For example, use a Function function script, the key function line can be: Stt. function [root, fx, ea,iter]-falseposition (func,x1,xu,es, maxit, varargin) % falseposition : root location zeroes % [root,fx, ea,iter]=falseposition (func , x1,xu,es,maxit,p1,p2, ): % uses false position method to find the root of func % input: % func name of function % xi, xu lower and upper guesses % es desired relative error (default 0.00014) % maxit = maximum allowable iterations (default = 50) % p1,p2 , additional parameters used by func % output: % root = real root % fx function value at root % ea approximate relative error (%) % iter number of iterations Determine the first root of the same function as in the problem 1 by False Positiorn method using initial guess of x,--1 and Xu-0 and a stopping criterion of 1%. Also, develop an M-file for the False Position method and test it to solve the given problem. For example, use a Function function script, the key function line can be: Stt. function [root, fx, ea,iter]-falseposition (func,x1,xu,es, maxit, varargin) % falseposition : root location zeroes % [root,fx, ea,iter]=falseposition (func , x1,xu,es,maxit,p1,p2, ): % uses false position method to find the root of func % input: % func name of function % xi, xu lower and upper guesses % es desired relative error (default 0.00014) % maxit = maximum allowable iterations (default = 50) % p1,p2 , additional parameters used by func % output: % root = real root % fx function value at root % ea approximate relative error (%) % iter number of iterations

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!