Next:
About this document ...
Up:
week3l
Previous:
week3l
Solving Nonlinear Equations
We have given the following function;
To obtain the true value for the root
, which is needed to compute the actual error. MATLAB is used as:
>> solve('3*x + sin(x) - exp(x)') ans= .36042170296032440136932951583028
Use the function used in the previous item, and write a MATLAB program for Muller's method:
An algorithm for Muller's method :
Use the function used in the previous item, and write a MATLAB program for Fixed-point Iteration;
Method:
Iteration algorithm with the form
Tabulate the actual error values as the following; (See Table
1
. The number of iterations is not limited to or defined as 15.)
Table 1:
The Error Sequences
n
Muller
Fixed-point
Muller
Fixed-point
1
2
3
4
5
6
7
8
9
10
12
13
14
15
Plot the behaviours of the errors (use ratios) for both cases. Compare and discuss the rate of convergence.
A pair of equations:
Solve this system by expanding both functions as a Taylor series (begin with
) and by Iteration (begin with
)
Tabulate the actual error values as the following; (See Table
2
. The number of iterations is not limited to or defined as 15.)
Table 2:
The Error Sequences
n
Expansion
Iteration
1
2
3
4
5
6
7
8
9
10
12
13
14
15
Next:
About this document ...
Up:
week3l
Previous:
week3l
2004-10-22