Question: roblem 1 : Application of the Fixed - Point Iteration Method In class, we have presented the non - dimensional frequency equation, given below, whose
roblem : Application of the FixedPoint Iteration Method
In class, we have presented the nondimensional frequency equation, given below, whose roots are
related to the natural frequencies of vibration of a cantilever beam.
cosh cos
The following iterative algorithm is proposed in an attempt to obtain the roots of the frequency
equation using the fixedpoint iteration method
kcoshk cosk k
In your MATLAB programming, you may replace by for simplicity.
In the prelab, you have already developed a numerical solver for the fixedpoint iterative algorithm
which will terminate when the relative approximate error is smaller than a userspecified maximum
tolerance maxtol or when the number of iterations exceeds a userspecified maximum number of
iterations maxitr.
a Show how the above algorithm is derived based on fixed point iteration concept. This is the template: function x er n FixedPointg x maxtol, maxitr
Numerical solution of fx by the fixed point iteration method
Wayne State University ME
Copyrighted by: Chin An Tan and Heather L Lai
Numerical Methods & Programming Using MATLAB: Principles and Practice
Revised January Sept Jan
InputsOutputs:
g iterative function
x initial estimate of the root
maxtol maximum error tolerance
maxitr maximum number of iterations allowed
x approximate solution root of the equation funx
er final absolute relative approximate error
n number of iterations needed for convergence based on maxtol
Initializations and checks
Check for missing input arguments maxtol and maxitr and set defaults
if nargin maxitr ; end
if nargin maxtol e; end
x x; Set the initial guess as the current estimate
er ; Initialize the approximate error to
k ; Initialize the iteration number
Implementation of fixedpoint iteration algorithm
while er maxtol && k maxitr
kk;
xold x;
xgx;
erabsxxoldx;
Output the values of k x and er at each iteration
fprintfiter it x et er e
kxer;
end
nk;
Check results for no convergence
if n maxitr && er maxtol
fprintf
warningMaximum number of iterations reached before convergence'
fprintf
Solution not obtained in d iterations.
maxitr;
end
end
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
