SlideShare a Scribd company logo
1 of 15
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

Euler's Method
Euler's MethodEuler's Method
Euler's Methoddmidgette
 
Newton's forward & backward interpolation
Newton's forward & backward interpolationNewton's forward & backward interpolation
Newton's forward & backward interpolationHarshad Koshti
 
Ordinary differential equations
Ordinary differential equationsOrdinary differential equations
Ordinary differential equationsAhmed Haider
 
presentation on Euler and Modified Euler method ,and Fitting of curve
presentation on Euler and Modified Euler method ,and Fitting of curve presentation on Euler and Modified Euler method ,and Fitting of curve
presentation on Euler and Modified Euler method ,and Fitting of curve Mukuldev Khunte
 
Eigenvectors & Eigenvalues: The Road to Diagonalisation
Eigenvectors & Eigenvalues: The Road to DiagonalisationEigenvectors & Eigenvalues: The Road to Diagonalisation
Eigenvectors & Eigenvalues: The Road to DiagonalisationChristopher Gratton
 
Eigenvalues and Eigenvectors
Eigenvalues and EigenvectorsEigenvalues and Eigenvectors
Eigenvalues and EigenvectorsVinod Srivastava
 
System Of Linear Equations
System Of Linear EquationsSystem Of Linear Equations
System Of Linear Equationssaahil kshatriya
 
Numerical integration;Gaussian integration one point, two point and three poi...
Numerical integration;Gaussian integration one point, two point and three poi...Numerical integration;Gaussian integration one point, two point and three poi...
Numerical integration;Gaussian integration one point, two point and three poi...vaibhav tailor
 
Gauss jordan method.pptx
Gauss jordan method.pptxGauss jordan method.pptx
Gauss jordan method.pptxRehmanRasheed3
 
Jacobi iterative method
Jacobi iterative methodJacobi iterative method
Jacobi iterative methodLuckshay Batra
 

What's hot (20)

Term paper
Term paperTerm paper
Term paper
 
Euler's Method
Euler's MethodEuler's Method
Euler's Method
 
Secant Method
Secant MethodSecant Method
Secant Method
 
GAUSS ELIMINATION METHOD
 GAUSS ELIMINATION METHOD GAUSS ELIMINATION METHOD
GAUSS ELIMINATION METHOD
 
Group Theory
Group TheoryGroup Theory
Group Theory
 
newton raphson method
newton raphson methodnewton raphson method
newton raphson method
 
Newton's forward & backward interpolation
Newton's forward & backward interpolationNewton's forward & backward interpolation
Newton's forward & backward interpolation
 
Ordinary differential equations
Ordinary differential equationsOrdinary differential equations
Ordinary differential equations
 
presentation on Euler and Modified Euler method ,and Fitting of curve
presentation on Euler and Modified Euler method ,and Fitting of curve presentation on Euler and Modified Euler method ,and Fitting of curve
presentation on Euler and Modified Euler method ,and Fitting of curve
 
LU FACTORIZATION METHOD
 LU FACTORIZATION METHOD LU FACTORIZATION METHOD
LU FACTORIZATION METHOD
 
Differential equations
Differential equationsDifferential equations
Differential equations
 
Eigenvectors & Eigenvalues: The Road to Diagonalisation
Eigenvectors & Eigenvalues: The Road to DiagonalisationEigenvectors & Eigenvalues: The Road to Diagonalisation
Eigenvectors & Eigenvalues: The Road to Diagonalisation
 
Unit1
Unit1Unit1
Unit1
 
Eigenvalues and Eigenvectors
Eigenvalues and EigenvectorsEigenvalues and Eigenvectors
Eigenvalues and Eigenvectors
 
System Of Linear Equations
System Of Linear EquationsSystem Of Linear Equations
System Of Linear Equations
 
Numerical integration;Gaussian integration one point, two point and three poi...
Numerical integration;Gaussian integration one point, two point and three poi...Numerical integration;Gaussian integration one point, two point and three poi...
Numerical integration;Gaussian integration one point, two point and three poi...
 
Gauss jordan method.pptx
Gauss jordan method.pptxGauss jordan method.pptx
Gauss jordan method.pptx
 
Gauss jordan
Gauss jordanGauss jordan
Gauss jordan
 
Jacobi iterative method
Jacobi iterative methodJacobi iterative method
Jacobi iterative method
 
Secant method
Secant methodSecant method
Secant 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 2Scilab
 
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 Scienceresearchinventy
 
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
 
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 1Philip Schwarz
 
MATHS LAB MANUAL 22mats11.pdf
MATHS LAB MANUAL 22mats11.pdfMATHS LAB MANUAL 22mats11.pdf
MATHS LAB MANUAL 22mats11.pdfssuser8f6b1d1
 
INTRODUCTION TO MATLAB presentation.pptx
INTRODUCTION TO MATLAB presentation.pptxINTRODUCTION TO MATLAB presentation.pptx
INTRODUCTION TO MATLAB presentation.pptxDevaraj 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
 
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
 
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 05Charlton 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
 
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
 
D026017036
D026017036D026017036
D026017036
 

Recently uploaded

Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfROCENODodongVILLACER
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptSAURABHKUMAR892774
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEroselinkalist12
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHC Sai Kiran
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 

Recently uploaded (20)

Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdf
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 

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