Develop matlab function for the fixed-point method

Assignment Help MATLAB Programming
Reference no: EM13703773

Question: Develop your own Matlab function for the Fixed-point method. Use the estimated 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; root is 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.)

Can someone demonstrate me how to write a proper code for this problem and how to complete it. Thanks

 

Reference no: EM13703773

Questions Cloud

Write a program to print out 30 real random numbers : Write a program to print out 30 Real Random Numbers with specific limitation (e.g. the real random numbers should be the real number between min=11.1 to  max=222.2).
Python journeyman : What are the steps YOU would recommend to a Python journeyman, from apprenticeship to guru status?
What is technology s-curve : What is technology S-curve? Provide an example that explains how to use S-curves to prescribe development of new component technologies.
Iterate through vector : Iterate through vector A using a for loop and create a new vector B containing logical values. The new vector should contain true for positive values and false for all other values.
Develop matlab function for the fixed-point method : Develop your own Matlab function for the Fixed-point method. Use the estimated relative error as your stopping criterion. The first line of your function should be function
Program that prints the statement : Write a program that prints the statement "Learning new topics is Fun!" in a function called writeThoughts that is called by the main function.
Write a program that finds the average time : Write a program that finds the average time spent programming by a student each day over a 3 day period.
Write a function base : Write a function base(b,x) that computes the representation of x in an arbitrary base b.
How you use your internet : Should Internet access providers or telephone companies be allowed to monitor how you use your Internet or telephone connection? Why or why not?

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Linear support vector machine svm

Write a computer program to prepare a Linear Support Vector Machine SVM.

  Matlab: create a function that will use the secant method

MATLAB: Create a function that will use the Secant method

  Estimate the numerical wave speed

Scheme and try a couple of values for α, one close to 1 and the other not. Convince yourself that a smaller Δt is not necessarily a better choice.

  Progrmaing i uploaded the

i uploaded the instruction. ltbrgt

  Read the file a line at a time

Write the modified text file with the same name as the original file, but preprended with 'new_'. For instance, if the input filename was 'data.txt', the output filename would be 'new_data.txt'.

  Vb and matlab to calculate the cumulative days

Create a function TotalDaysMonth(intYear, intMonth, strIndOrCum) in both VB and Matlab to calculate the cumulative days or number of days in a given month, depending on inputs, by employing array vector in VB or a vector matrix in Matlab.

  Pattern recognition

Research and discover more in-depth knowledge about topics in Pattern Recognition and choose a topic. The best topic will be the one you are most interested in or a topic from your research project you are working on.

  Derive and solve a model of an insulated water tank

Determine the steady state conditions at t

  Function that will use the secant method to try to find

Create a function that will use the Secant method to try to find a root. (Hint modify the posted version of False Position.) Because this method may diverge

  Design an optimal equiripple glp fir filter

Design a filter that meets all specifications, and show your results in support. Comment on the path your design process took, in particular on observations made and actions taken on the basis thereof.

  Explore the design of a recursive digital filter

In this simulation we are going to explore the design of a recursive digital filter which might be usedvin a digital radio station. The sampling frequency used in digital radio (DAB) is either 48 kHz or 24 kHz and for the purposes of this simulation,

  Write a script that will loop through values of n

Write a script that will loop through values of n until the difference between the approximation and the actual value is less than 0.0001.

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