The General Iteration Method (Fixed Point Iteration Method)

The Script demonstrates the implementation of "The General Iteration Method"
다운로드 수: 778
업데이트 날짜: 2018/10/21

라이선스 보기

"The General Iteration Method" also known as "The Fixed Point Iteration Method" , uses the definition of the function itself to find the root in a recursive way.

Suppose the given function is f (x) = sin (x) + x. This function can be written in following way :-
xkplus1 = sin (xk) ; xkplus1 = asin (xk)
Here f (x) = 0 since this the value of function at the root. "xk" is the kth approximation to the root and "xkplus1" is the next approximation to the root.Proceeding in this way we go on finding approximations to the root and hopefully converge to the actual root.

The R.H.S of the equations is written as :- phi(xk)
So the equation is written as follows :- xkplus1 = phi(xk)

We have observed above that there are multiple choices for "phi(xk)" . Which to choose?
There exists a necessary condition to be satisfied and this helps in choosing the right "phi(xk)".
The condition is as follows :- || (d/dx)phi(xk) || < 1 , where d/dx denotes the derivative of "phi(xk)"

In order to further facilitate the finding of right "phi(xk)" we write "phi(xk)" in this format :-
phi(xk) = x + alpha * f (x)
So now the condition is :- || (d/dx)phi(xk) || < 1 => ||1 + alpha * (d/dx) f (xk)|| < 1
Using this condition we find an interval "I" for "alpha". ANY "alpha" from that interval would satisfy our necessary condition.

IMPORTANT NOTE : The Necessary Condition should be satisfied for EACH iteration.

So in this script we randomly select an "alpha" from the interval "I" and check the condition at each iteration. If it is not satisfied, we choose randomly another alpha.

Proceeding in this way, we perform upto 200 iterations .The Accuracy required (required no. of decimal places) is taken as input from the user. The error between solutions of each iteration is checked every time and if found less than required accuracy, the iterations are stopped.

인용 양식

अंबरीश प्रशांत चांदूरकर Ambarish Prashant Chandurkar (2024). The General Iteration Method (Fixed Point Iteration Method) (https://www.mathworks.com/matlabcentral/fileexchange/69171-the-general-iteration-method-fixed-point-iteration-method), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2018a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Mathematics and Optimization에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0