Develop your own matlab function for the fixed-point method

Assignment Help Applications of MATLAB
Reference no: EM13376563

Develop your own Matlab function for the Fixed-point method. Use the approximate relative error as your stopping criterion. The first line of your function should be function [root,froot,ea,iter] = fixedpoint(func,xr,es,maxit) where func is the function handle for the function to find the root of, xr is the initial guess for the starting point, es is the stopping criterion for the approximate relative error, and maxit is the maximum number of iterations; rootis the value of the root, froot is the function value at root, ea is the approximate error of that root, and iter is the number of iterations needed.

Test your code for f(x) = 0.2-log(x^0.2) = 0, using an initial guess of xr = 1 and a stopping criterion es=1.e-4. (The correct result is x=exp(1)= 2.718281828459046.)

 

 

Reference no: EM13376563

Questions Cloud

A system uses a page size of the 4 kbytes and a program : a system uses a page size of the 4 kbytes and a program size of 46 kbytes is allocated memory. what is the
Write a point class that represents points on an x y axis : write a point class that represents points on an x y axis. the data members should be doubles x and y plus an int value
Write a method called alldigitsodds that returns whether : write a method called alldigitsodds that returns whether every digit of a positive integer is odd. return true if the
Questions 1 to 20 select the best answer to each question : questions 1 to 20 select the best answer to each question. note that a question and its answers may be split across a
Develop your own matlab function for the fixed-point method : develop your own matlab function for the fixed-point method. use the approximate relative error as your stopping
Should internet access providers or telephone companies be : should internet access providers or telephone companies be allowed to monitor how you use your internet or telephone
Three 3 personal trainers at an upscale health spa resort : three 3 personal trainers at an upscale health spa resort in sedona arizona want to start a health club that
Problem 1 break-even analysis and : problem 1 break-even analysis and profit
Hobbs co has the following defined-benefit pension plan : hobbs co. has the following defined-benefit pension plan balances on january 1 2012.projected benefit obligation

Reviews

Write a Review

Applications of MATLAB Questions & Answers

  Problem consider a trapezoidal piece of polymer film as

problem consider a trapezoidal piece of polymer film as shown below. the parallel sides of the trapezoid are insulated

  In a shell-and-tube heat exchanger one fluid passes through

in a shell-and-tube heat exchanger one fluid passes through a central tube while another fluid flows through an outer

  1 we want to find the integral of a function at an

1. we want to find the integral of a function at an arbitrary location x from the origin.nbsp thuswhere ix0 is the

  Write a matlab function speed planetary n emesh first last

write a matlab function speed planetary n emesh first last arm that computes the speed of a given link in a

  1 this problem is intended to demonstrate some problems

1. this problem is intended to demonstrate some problems that can arise from the finite precision of numerical

  Create the following graph which contains a piecewise

create the following graph which contains a piecewise function where a line exists in the first interval a parabola in

  1 given the following actual cpu burst for a tasknbsp 6 4 6

1. given the following actual cpu burst for a tasknbsp 6 4 6 4 13 13 13 and an initial best guess at the burst as 10

  Problem 1nbsp use matlab to answer the following system of

problem 1.nbsp use matlab to answer the following system of linear equations2x y 3z 1 2x 6y 8z 3 6x 8y 18z 5

  Implementation in matlab under windows to open a named pipe

implementation in matlab under windows to open a named pipe and to read data from the pipe an other program writes into

  P1 write the commands that will create the following matrix

p1 write the commands that will create the following matrix. you can use only special matrix commandsp2 two cars

  1 let pnx be the lagrange interpolating polynomial of

1. let pnx be the lagrange interpolating polynomial of degree at most n that satis?es pnxi yi i 0 1 2 . . . n.write

  Q1 filter function form is y myfilterxba where x is

q1 filter function form is y myfilterxba where x is input y is output and a and b are the iir and fir

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd