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

  Write a computer program to prepare a linear support vector

write a computer program to prepare a linear support vector machine svm. your program could be able to incorporate and

  Economic formulas are available to compute annual payments

economic formulas are available to compute annual payments for loans. suppose that you borrow an amount of money p and

  Write the specification of load moverdetailed of the whole

write the specification of load moverdetailed of the whole design and precise for automatic control section.requirement

  Piecewise functions are sometimes useful when the

piecewise functions are sometimes useful when the relationship between a dependent and an independent variable cannot

  1 we know that there is a symmetry in the rod so the point

1. we know that there is a symmetry in the rod so the point at 0.2 must be equal to the point at 0.8 but the output was

  A group of students have collected mechanical data on a mts

a group of students have collected mechanical data on a mts machine from chicken cartilage.nbsp specifically they have

  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

  Use the three-parameter zone finite element method or the

use the three-parameter zone finite element method or the boundary collocation method to calculate the stress intensity

  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

  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

  Write matlab scripts for the followinga to accept two

write matlab scripts for the followinga. to accept two numbers from the user display all prime numbers between these

  Write a system cc program for bus arbiterthe bus arbiter is

write a system cc program for bus arbiterthe bus arbiter is a device used in multi-master system with shared bus. it is

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