No BSD License  

Highlights from
fixed point itration

1.0

1.0 | 1 rating Rate this file 7 Downloads (last 30 days) File Size: 417 Bytes File ID: #22235

fixed point itration

by AHHA

 

24 Nov 2008

fixed point iteration for numerical method

| Watch this File

File Information
Description

fixed point iteration for numerical method

MATLAB release MATLAB 7.6 (R2008a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
24 Nov 2008 John D'Errico

This does not actually do anything useful, except clear your matlab workspace. Yes, it is a script that clears what you were just working on.

For this to be really useful, the author would need to be FAR more descriptive. In this script, the author uses iteration (as opposed to itration) to solve for a root of a nonlinear expression in x. The example posed is to solve for x such that

  sin(x) - x^2 = 0

The process used is to iterate the expression

  x = sqrt(sin(x));

But sadly, there is no suggestion as to why this particular form was chosen. For example, why not use the alternative

  x = asin(x^2)

instead? Would this have converged more rapidly? There is no advice provided at all. What happens if you have a more complex expression? Are there any criteria one might use to know which is better?

As such, this is really completely worthless, even as a homework solution. I'd have given it no better than a C, so if you are a student who will copy this mess, you will be poorly served.

There are a few internal comments. This is good. But they are not terribly informative. For example, a tolerance is supplied, but there is no explanation at all about why the author multiples by 100 inside the computation.

Use fzero instead, a good piece of software.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
fixed point Cristina McIntire 24 Nov 2008 15:50:49
numerical method Cristina McIntire 24 Nov 2008 15:50:57
numerical AHHA 24 Nov 2008 15:51:01
fixed point Kitae Kim 04 Feb 2009 11:34:02
fixed point Jia Liu 01 Feb 2010 00:12:55
newtonraphson method Melkamu Adgo 23 May 2010 18:13:30
numerical method Melkamu Adgo 23 May 2010 18:15:29
numerical Melkamu Adgo 23 May 2010 18:15:34

Contact us at files@mathworks.com