Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started