Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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

DB2 11 The Database For Big Data And Analytics

Authors: Cristian Molaro, Surekha Parekh, Terry Purcell, Julian Stuhler

1st Edition

1583473858, 978-1583473856

More Books

Students also viewed these Databases questions

Question

LO14.2 Discuss how game theory relates to oligopoly.

Answered: 1 week ago