SlideShare a Scribd company logo
NORTH WESTERN UNIVERSITY
Computer Science & Engineering
Course Titel: Numerical Analysis
Course Code: CSE-2321
Presentation on: Jacobi Iteration Method
Submitted by:
Name : MD. MONIRUL ISLAM
ID: 20151116010
Submitted to:
Name : SONIYA YEASMIN
Lecturer
Computer Science & Engineering
North Western University , Khulna
* General Introduction of Jacobi Iteration Method.
* Basic idea of Jacobi Iteration Method.
* Numerical algorithm of Jacobi Iteration Method.
* Implementation of Jacobi Iteration Method in C Programming.
* Advantages of Jacobi Iteration Method.
* Limitations of Jacobi Iteration Method.
* References.
INDEX
General Introduction of Jacobi Iteration Method
Jacobi iterative method is considered as an iterative algorithm which is used for
determining the solutions for the system of linear equations in numerical linear algebra,
which is diagonally dominant.
In this method, an approximate value is filled in for each diagonal element. Until it
converges, the process is iterated. This algorithm was first called the Jacobi
transformation process of matrix diagonalization.
The Jacobi iteration is the simplest of the classical iterative methods and, generally, the
slowest. However, it forms a basis for the understanding of other methods, such as
Gauss-Seidel and SOR.
Basic idea of Jacobi Iteration Method
Two assumptions made on Jacobi Method:
1.The system given by
a11x1 +a12x2+… a1nxn=b 1
a21x1 +a22x2+… a2nxn=b 2
an1x1 +an2x2+… annxn =b n
Has a unique solution.
2.The coefficient matrix A has no zeros on its main diagonal, namely a11, a22,ann are nonzeros.
Main idea of Jacobi method :
To begin, solve the 1st equation for x1, the 2nd equation for x2 and so on to obtain the rewritten equations:
Then make an initial guess of the solution . Substitute these values into the right hand side the
of the rewritten equations to obtain the first approximation,
This accomplishes one iteration.
In the same way, the second approximation is computed by substituting the first approximation’s -
vales into the right hand side of the rewritten equations.
By repeated iterations, we form a sequence of approximations .
The Jacobi Method.
For each k ≤ 1, generate the components xi
(k) of x(k) from x(k-1) by,
Example: Apply the Jacobi method to solve,
Continue iterations until two successive approximations are identical when rounded to three significant digits.
Solution :To begin, rewrite the system
Choose the initial guess x1=0, x2=0 and x3=0 .
The first approximation is ,
Continue iteration, we obtain ,
The Jacobi Method in Matrix Form
x1
Consider to solve an n×n size system of linear equations Ax=b with A= for x= [x2]
xn
We split A into,
Ax=b is transformed into (D-L-U)x = b .
Dx=(L+U)x + b.
Assume D-1 exist and D-1=
Then, x=D-1(L+U)x +D-1b.
The matrix form of Jacobi iterative method is ,
x(k) =D -1(L+U)x(k-1) +D -1 b k=1,2,3….
Define T=D-1(L+U) and c= D-1b Jacobi iteration method can also be written as ,
x(k) =Tx(k-1) +c k=1,2,3….
Numerical algorithm of Jacobi Iteration Method
Input: A=[aij] , b×XO= x0 , tolerance TOL, maximum number of iterations N.
Step 1: Set K=1
Step 2: While (k ≤ N) do step 3-6.
Step 3: For for i= 1,2,…n .
Step 4: If │ |x-X0| │< TOT Then OUTPUT (x1,x2,x3,..xn) ;
Step 5: Set k=k+1.
Step 6: For for i = 1,2,….n
Set XOi= xi
Step 7: OUTPUT (x1,x2,x3,…xn);
STOP
Another stopping criterion in Step 4:
Implementation of Jacobi Iteration Method in
C Programming
#include<stdio.h>
#include<conio.h>
#include<math.h>
float fx(float y,float z)
{
float x1; x1=4-2*y-3*z;
return x1;
}
float fy(float x,float z)
{
float y1;
y1=(8-5*x-7*z)/6;
return y1;
}
float fz(float x,float y)
{
float z1;
z1=(3-9*x-y)/2;
return z1;
}
void main()
{
int i,j,n;
float a1,b1,c1;
INPUT:
float a,b,c;
float ar[3][4],x[3];
clrscr();
printf("Enter the no. of Iteration : ");
scanf("%d",&n);
printf("Enter The initial value : ");
scanf("%f %f %f",&a,&b,&c);
for(i=0;i<n ; i++)
{
for(j=0;j<n ; j++)
{
a1=fx(b , c);
b1=fy(a , c);
c1=fz(a , b);
a=a1;
b=b1;
c=c1;
}
}
printf("a1 = %fn a2 = %fn a3 = %f",a1,b1,c1);
getch();
}
OUTPUT:
Advantages of Jacobi Iteration Method
Here are some advantages of Jacobi Iteration Method
1. It is simple and numerically robust.
2. Each iterations quite fast.
3. It is highly desirable for many applications.
4. The Jacobi method first generate inexact result and subsequently refines its result at
each iteration , with the residuals Converging at an exponential rate.
Limitations of Jacobi Iteration Method
Here are some Limitations of Jacobi Iteration Method
1. Inflexible
The Jacobi method only works on matrices A for which p(A) < I, or ||A|| < 1holds.
This makes it inapplicable to a large set of problems.
2. Large Set-Up Time
The Jacobi method cannot immediately begin producing results.
Before it can begin its iteration, a matrix —13-1(L+U) must be computed. For large
input matrices, this may not be a trivial operation, as it takes 0(n2) time to perform this
matrix multiplication. The result is a significant lag before any results can be output.
3. It might require many iterations.
4. If the linear system is ill-conditioned, it is most probably that the Jacobi method will fail
to converge.
References
[1] . Numerical Methods.by E Balaguruswamy.
[2] . https://www3.nd.edu/~zxu2/acms40390F12/Lec-7.3.pdf
[3] . https://en.wikipedia.org/wiki/Jacobi_method
Jacobi iteration method

More Related Content

What's hot

Fixed point iteration
Fixed point iterationFixed point iteration
Fixed point iteration
Isaac Yowetu
 
linear equation and gaussian elimination
linear equation and gaussian eliminationlinear equation and gaussian elimination
linear equation and gaussian elimination
Aju Thadikulangara
 
Crout s method for solving system of linear equations
Crout s method for solving system of linear equationsCrout s method for solving system of linear equations
Crout s method for solving system of linear equations
Sugathan Velloth
 
2. Fixed Point Iteration.pptx
2. Fixed Point Iteration.pptx2. Fixed Point Iteration.pptx
2. Fixed Point Iteration.pptx
saadhaq6
 
Numerical Analysis (Solution of Non-Linear Equations) part 2
Numerical Analysis (Solution of Non-Linear Equations) part 2Numerical Analysis (Solution of Non-Linear Equations) part 2
Numerical Analysis (Solution of Non-Linear Equations) part 2
Asad Ali
 
Basic operators in matlab
Basic operators in matlabBasic operators in matlab
Basic operators in matlab
rishiteta
 
Secant Method
Secant MethodSecant Method
Secant Method
Afraz Khan
 
BISECTION METHOD
BISECTION METHODBISECTION METHOD
Gaussian Elimination Method
Gaussian Elimination MethodGaussian Elimination Method
Gaussian Elimination Method
Andi Firdaus
 
Relaxation method
Relaxation methodRelaxation method
Relaxation method
Parinda Rajapaksha
 
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical MethodsGauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Janki Shah
 
Finite difference method
Finite difference methodFinite difference method
Finite difference method
Divyansh Verma
 
Numerical method for solving non linear equations
Numerical method for solving non linear equationsNumerical method for solving non linear equations
Numerical method for solving non linear equations
MdHaque78
 
Secant method
Secant methodSecant method
Secant method
Zahra Saman
 
Secant method
Secant method Secant method
Secant method
Er. Rahul Jarariya
 

What's hot (20)

Fixed point iteration
Fixed point iterationFixed point iteration
Fixed point iteration
 
linear equation and gaussian elimination
linear equation and gaussian eliminationlinear equation and gaussian elimination
linear equation and gaussian elimination
 
Crout s method for solving system of linear equations
Crout s method for solving system of linear equationsCrout s method for solving system of linear equations
Crout s method for solving system of linear equations
 
2. Fixed Point Iteration.pptx
2. Fixed Point Iteration.pptx2. Fixed Point Iteration.pptx
2. Fixed Point Iteration.pptx
 
Gauss sediel
Gauss sedielGauss sediel
Gauss sediel
 
Numerical Analysis (Solution of Non-Linear Equations) part 2
Numerical Analysis (Solution of Non-Linear Equations) part 2Numerical Analysis (Solution of Non-Linear Equations) part 2
Numerical Analysis (Solution of Non-Linear Equations) part 2
 
Basic operators in matlab
Basic operators in matlabBasic operators in matlab
Basic operators in matlab
 
Secant Method
Secant MethodSecant Method
Secant Method
 
BISECTION METHOD
BISECTION METHODBISECTION METHOD
BISECTION METHOD
 
Gaussian Elimination Method
Gaussian Elimination MethodGaussian Elimination Method
Gaussian Elimination Method
 
Relaxation method
Relaxation methodRelaxation method
Relaxation method
 
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical MethodsGauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
 
Es272 ch4b
Es272 ch4bEs272 ch4b
Es272 ch4b
 
Term paper
Term paperTerm paper
Term paper
 
Finite difference method
Finite difference methodFinite difference method
Finite difference method
 
Numerical method for solving non linear equations
Numerical method for solving non linear equationsNumerical method for solving non linear equations
Numerical method for solving non linear equations
 
Secant method
Secant methodSecant method
Secant method
 
Numerical Method 2
Numerical Method 2Numerical Method 2
Numerical Method 2
 
Secant method
Secant method Secant method
Secant method
 
newton raphson method
newton raphson methodnewton raphson method
newton raphson method
 

Similar to Jacobi iteration method

Episode 50 : Simulation Problem Solution Approaches Convergence Techniques S...
Episode 50 :  Simulation Problem Solution Approaches Convergence Techniques S...Episode 50 :  Simulation Problem Solution Approaches Convergence Techniques S...
Episode 50 : Simulation Problem Solution Approaches Convergence Techniques S...
SAJJAD KHUDHUR ABBAS
 
Scilab for real dummies j.heikell - part 2
Scilab for real dummies j.heikell - part 2Scilab for real dummies j.heikell - part 2
Scilab for real dummies j.heikell - part 2
Scilab
 
Research Inventy : International Journal of Engineering and Science
Research Inventy : International Journal of Engineering and ScienceResearch Inventy : International Journal of Engineering and Science
Research Inventy : International Journal of Engineering and Science
researchinventy
 
Metodos jacobi y gauss seidel
Metodos jacobi y gauss seidelMetodos jacobi y gauss seidel
Metodos jacobi y gauss seidelCesar Mendoza
 
Metodos jacobi y gauss seidel
Metodos jacobi y gauss seidelMetodos jacobi y gauss seidel
Metodos jacobi y gauss seidelCesar Mendoza
 
Linear regression [Theory and Application (In physics point of view) using py...
Linear regression [Theory and Application (In physics point of view) using py...Linear regression [Theory and Application (In physics point of view) using py...
Linear regression [Theory and Application (In physics point of view) using py...
ANIRBANMAJUMDAR18
 
Parallel algorithm in linear algebra
Parallel algorithm in linear algebraParallel algorithm in linear algebra
Parallel algorithm in linear algebra
Harshana Madusanka Jayamaha
 
Computer Graphics in Java and Scala - Part 1
Computer Graphics in Java and Scala - Part 1Computer Graphics in Java and Scala - Part 1
Computer Graphics in Java and Scala - Part 1
Philip Schwarz
 
Ijetr021210
Ijetr021210Ijetr021210
Ijetr021210
Ijetr021210Ijetr021210
Ijetr021210
ER Publication.org
 
Bisection method
Bisection methodBisection method
Bisection method
Tirth Parmar
 
Gauss jordan and Guass elimination method
Gauss jordan and Guass elimination methodGauss jordan and Guass elimination method
Gauss jordan and Guass elimination method
Meet Nayak
 
MATHS LAB MANUAL 22mats11.pdf
MATHS LAB MANUAL 22mats11.pdfMATHS LAB MANUAL 22mats11.pdf
MATHS LAB MANUAL 22mats11.pdf
ssuser8f6b1d1
 
INTRODUCTION TO MATLAB presentation.pptx
INTRODUCTION TO MATLAB presentation.pptxINTRODUCTION TO MATLAB presentation.pptx
INTRODUCTION TO MATLAB presentation.pptx
Devaraj Chilakala
 
Efficient Solution of Two-Stage Stochastic Linear Programs Using Interior Poi...
Efficient Solution of Two-Stage Stochastic Linear Programs Using Interior Poi...Efficient Solution of Two-Stage Stochastic Linear Programs Using Interior Poi...
Efficient Solution of Two-Stage Stochastic Linear Programs Using Interior Poi...
SSA KPI
 
n7-LP-simplex.ppt
n7-LP-simplex.pptn7-LP-simplex.ppt
n7-LP-simplex.ppt
Mayurkumarpatil1
 
Exact Quasi-Classical Asymptoticbeyond Maslov Canonical Operator and Quantum ...
Exact Quasi-Classical Asymptoticbeyond Maslov Canonical Operator and Quantum ...Exact Quasi-Classical Asymptoticbeyond Maslov Canonical Operator and Quantum ...
Exact Quasi-Classical Asymptoticbeyond Maslov Canonical Operator and Quantum ...
ijrap
 
Unit 4 jwfiles
Unit 4 jwfilesUnit 4 jwfiles
Unit 4 jwfiles
Nv Thejaswini
 
Ann a Algorithms notes
Ann a Algorithms notesAnn a Algorithms notes
Ann a Algorithms notes
Prof. Neeta Awasthy
 
Wk 6 part 2 non linearites and non linearization april 05
Wk 6 part 2 non linearites and non linearization april 05Wk 6 part 2 non linearites and non linearization april 05
Wk 6 part 2 non linearites and non linearization april 05
Charlton Inao
 

Similar to Jacobi iteration method (20)

Episode 50 : Simulation Problem Solution Approaches Convergence Techniques S...
Episode 50 :  Simulation Problem Solution Approaches Convergence Techniques S...Episode 50 :  Simulation Problem Solution Approaches Convergence Techniques S...
Episode 50 : Simulation Problem Solution Approaches Convergence Techniques S...
 
Scilab for real dummies j.heikell - part 2
Scilab for real dummies j.heikell - part 2Scilab for real dummies j.heikell - part 2
Scilab for real dummies j.heikell - part 2
 
Research Inventy : International Journal of Engineering and Science
Research Inventy : International Journal of Engineering and ScienceResearch Inventy : International Journal of Engineering and Science
Research Inventy : International Journal of Engineering and Science
 
Metodos jacobi y gauss seidel
Metodos jacobi y gauss seidelMetodos jacobi y gauss seidel
Metodos jacobi y gauss seidel
 
Metodos jacobi y gauss seidel
Metodos jacobi y gauss seidelMetodos jacobi y gauss seidel
Metodos jacobi y gauss seidel
 
Linear regression [Theory and Application (In physics point of view) using py...
Linear regression [Theory and Application (In physics point of view) using py...Linear regression [Theory and Application (In physics point of view) using py...
Linear regression [Theory and Application (In physics point of view) using py...
 
Parallel algorithm in linear algebra
Parallel algorithm in linear algebraParallel algorithm in linear algebra
Parallel algorithm in linear algebra
 
Computer Graphics in Java and Scala - Part 1
Computer Graphics in Java and Scala - Part 1Computer Graphics in Java and Scala - Part 1
Computer Graphics in Java and Scala - Part 1
 
Ijetr021210
Ijetr021210Ijetr021210
Ijetr021210
 
Ijetr021210
Ijetr021210Ijetr021210
Ijetr021210
 
Bisection method
Bisection methodBisection method
Bisection method
 
Gauss jordan and Guass elimination method
Gauss jordan and Guass elimination methodGauss jordan and Guass elimination method
Gauss jordan and Guass elimination method
 
MATHS LAB MANUAL 22mats11.pdf
MATHS LAB MANUAL 22mats11.pdfMATHS LAB MANUAL 22mats11.pdf
MATHS LAB MANUAL 22mats11.pdf
 
INTRODUCTION TO MATLAB presentation.pptx
INTRODUCTION TO MATLAB presentation.pptxINTRODUCTION TO MATLAB presentation.pptx
INTRODUCTION TO MATLAB presentation.pptx
 
Efficient Solution of Two-Stage Stochastic Linear Programs Using Interior Poi...
Efficient Solution of Two-Stage Stochastic Linear Programs Using Interior Poi...Efficient Solution of Two-Stage Stochastic Linear Programs Using Interior Poi...
Efficient Solution of Two-Stage Stochastic Linear Programs Using Interior Poi...
 
n7-LP-simplex.ppt
n7-LP-simplex.pptn7-LP-simplex.ppt
n7-LP-simplex.ppt
 
Exact Quasi-Classical Asymptoticbeyond Maslov Canonical Operator and Quantum ...
Exact Quasi-Classical Asymptoticbeyond Maslov Canonical Operator and Quantum ...Exact Quasi-Classical Asymptoticbeyond Maslov Canonical Operator and Quantum ...
Exact Quasi-Classical Asymptoticbeyond Maslov Canonical Operator and Quantum ...
 
Unit 4 jwfiles
Unit 4 jwfilesUnit 4 jwfiles
Unit 4 jwfiles
 
Ann a Algorithms notes
Ann a Algorithms notesAnn a Algorithms notes
Ann a Algorithms notes
 
Wk 6 part 2 non linearites and non linearization april 05
Wk 6 part 2 non linearites and non linearization april 05Wk 6 part 2 non linearites and non linearization april 05
Wk 6 part 2 non linearites and non linearization april 05
 

Recently uploaded

Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
Vijay Dialani, PhD
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
ongomchris
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
SupreethSP4
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
AmarGB2
 

Recently uploaded (20)

Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
 

Jacobi iteration method

  • 1. NORTH WESTERN UNIVERSITY Computer Science & Engineering Course Titel: Numerical Analysis Course Code: CSE-2321 Presentation on: Jacobi Iteration Method Submitted by: Name : MD. MONIRUL ISLAM ID: 20151116010 Submitted to: Name : SONIYA YEASMIN Lecturer Computer Science & Engineering North Western University , Khulna
  • 2. * General Introduction of Jacobi Iteration Method. * Basic idea of Jacobi Iteration Method. * Numerical algorithm of Jacobi Iteration Method. * Implementation of Jacobi Iteration Method in C Programming. * Advantages of Jacobi Iteration Method. * Limitations of Jacobi Iteration Method. * References. INDEX
  • 3. General Introduction of Jacobi Iteration Method Jacobi iterative method is considered as an iterative algorithm which is used for determining the solutions for the system of linear equations in numerical linear algebra, which is diagonally dominant. In this method, an approximate value is filled in for each diagonal element. Until it converges, the process is iterated. This algorithm was first called the Jacobi transformation process of matrix diagonalization. The Jacobi iteration is the simplest of the classical iterative methods and, generally, the slowest. However, it forms a basis for the understanding of other methods, such as Gauss-Seidel and SOR.
  • 4. Basic idea of Jacobi Iteration Method Two assumptions made on Jacobi Method: 1.The system given by a11x1 +a12x2+… a1nxn=b 1 a21x1 +a22x2+… a2nxn=b 2 an1x1 +an2x2+… annxn =b n Has a unique solution. 2.The coefficient matrix A has no zeros on its main diagonal, namely a11, a22,ann are nonzeros. Main idea of Jacobi method : To begin, solve the 1st equation for x1, the 2nd equation for x2 and so on to obtain the rewritten equations:
  • 5. Then make an initial guess of the solution . Substitute these values into the right hand side the of the rewritten equations to obtain the first approximation, This accomplishes one iteration. In the same way, the second approximation is computed by substituting the first approximation’s - vales into the right hand side of the rewritten equations. By repeated iterations, we form a sequence of approximations . The Jacobi Method. For each k ≤ 1, generate the components xi (k) of x(k) from x(k-1) by,
  • 6. Example: Apply the Jacobi method to solve, Continue iterations until two successive approximations are identical when rounded to three significant digits. Solution :To begin, rewrite the system Choose the initial guess x1=0, x2=0 and x3=0 . The first approximation is ,
  • 7. Continue iteration, we obtain , The Jacobi Method in Matrix Form x1 Consider to solve an n×n size system of linear equations Ax=b with A= for x= [x2] xn We split A into, Ax=b is transformed into (D-L-U)x = b . Dx=(L+U)x + b. Assume D-1 exist and D-1=
  • 8. Then, x=D-1(L+U)x +D-1b. The matrix form of Jacobi iterative method is , x(k) =D -1(L+U)x(k-1) +D -1 b k=1,2,3…. Define T=D-1(L+U) and c= D-1b Jacobi iteration method can also be written as , x(k) =Tx(k-1) +c k=1,2,3….
  • 9. Numerical algorithm of Jacobi Iteration Method Input: A=[aij] , b×XO= x0 , tolerance TOL, maximum number of iterations N. Step 1: Set K=1 Step 2: While (k ≤ N) do step 3-6. Step 3: For for i= 1,2,…n . Step 4: If │ |x-X0| │< TOT Then OUTPUT (x1,x2,x3,..xn) ; Step 5: Set k=k+1. Step 6: For for i = 1,2,….n Set XOi= xi Step 7: OUTPUT (x1,x2,x3,…xn); STOP Another stopping criterion in Step 4:
  • 10. Implementation of Jacobi Iteration Method in C Programming #include<stdio.h> #include<conio.h> #include<math.h> float fx(float y,float z) { float x1; x1=4-2*y-3*z; return x1; } float fy(float x,float z) { float y1; y1=(8-5*x-7*z)/6; return y1; } float fz(float x,float y) { float z1; z1=(3-9*x-y)/2; return z1; } void main() { int i,j,n; float a1,b1,c1; INPUT:
  • 11. float a,b,c; float ar[3][4],x[3]; clrscr(); printf("Enter the no. of Iteration : "); scanf("%d",&n); printf("Enter The initial value : "); scanf("%f %f %f",&a,&b,&c); for(i=0;i<n ; i++) { for(j=0;j<n ; j++) { a1=fx(b , c); b1=fy(a , c); c1=fz(a , b); a=a1; b=b1; c=c1; } } printf("a1 = %fn a2 = %fn a3 = %f",a1,b1,c1); getch(); } OUTPUT:
  • 12. Advantages of Jacobi Iteration Method Here are some advantages of Jacobi Iteration Method 1. It is simple and numerically robust. 2. Each iterations quite fast. 3. It is highly desirable for many applications. 4. The Jacobi method first generate inexact result and subsequently refines its result at each iteration , with the residuals Converging at an exponential rate.
  • 13. Limitations of Jacobi Iteration Method Here are some Limitations of Jacobi Iteration Method 1. Inflexible The Jacobi method only works on matrices A for which p(A) < I, or ||A|| < 1holds. This makes it inapplicable to a large set of problems. 2. Large Set-Up Time The Jacobi method cannot immediately begin producing results. Before it can begin its iteration, a matrix —13-1(L+U) must be computed. For large input matrices, this may not be a trivial operation, as it takes 0(n2) time to perform this matrix multiplication. The result is a significant lag before any results can be output. 3. It might require many iterations. 4. If the linear system is ill-conditioned, it is most probably that the Jacobi method will fail to converge.
  • 14. References [1] . Numerical Methods.by E Balaguruswamy. [2] . https://www3.nd.edu/~zxu2/acms40390F12/Lec-7.3.pdf [3] . https://en.wikipedia.org/wiki/Jacobi_method