SlideShare ist ein Scribd-Unternehmen logo
1 von 15
PAPER –
CAP643

ï€ż Submitted To: -

ï€ż Submitted By: Abhishek Kumar

Mrs. Kavisha
Mam

~1~

Roll No: - 1207B333
Reg No: - 11210885
Course: - MCA 3rd
Sem. Section: D1207
ACKNOWLEDGEMENT
The experience that we have gathered during this Design
Problem has been unique .For this we are pleased to express
our deepest sense of gratitude and regards to our respected
teacher Mrs. Kavisha Mam for their guidance, inspiration
and constructive suggestions that helps us in the preparation
of the design problem.
I am also thankful to my classmate
constant encouragement and support.

2
INDEX
SL. NO.
1
2
3
4
5
6
7

CONTENTS
Introduction
Abstract
Operation on Jacobi Method
Comparison with other linear equation
Implementation of Jacobi Method in C
Advantages
Disadvantages

3

PAGE NO.
4
4-6
6-9
9-12
13-14
15
15
INTRODUCTION
Gauss Jacobi method is the first iterative method used to solve linear
system of equations. This project explains you how to solve the linear
equation using Gauss Jacobi iterative method

Abstract:This paper is concerned with the application of preconditioning
techniques to the well-known Jacobi iterative method for solving the
finite difference equations derived from the discretization of self-ad
joint elliptic partial differential equations. The convergence
properties of this one parameter preconditioned method are
analyzed and the value of the optimum preconditioning parameter
and the performance of the method determined for a variety of
standard problems.
Jacobi method involves rewriting equation 1 as follow:
X=D-1(L+U)x+D-1b
If we express it as an iterative method, we see it takes the form:
X(k+1)=Gx(k)+f
As a motivational example, we assume start with a linear system like
this one:
1
5
9

2
6
1

3
7
2

x1
x2
x3

*

4

=

4
8
3
Let us solve the ith equation for xi :
X1 = (4- 2x2-3x3)/1
X2 = (8- 5x1-7x3)/6
X3 = (3- 9x1-x2)/2

We can express this as an iterative method and rewrite it in a matrix
format.
x1
x2
x3

(k+1)

=

(k)

1/1
0
0 1/6
0
0

0
0
1/2

1/1
0
0 1/6
0
0

0
0
1/2

0
-5
-9

*

*

-2
0
-1

4
8
3

5

-3
-7
0

x1
* x2
x3

+
x1
x2
x3

(k+1)

=

0
-5/6
-9/2

-1/2 -1/3
0 -7/6
-1/2
0

*

x1
x2 +
x3

1/4
8/6
3/2

As you see, this takes the form x(k+1)=Gx(k)+f.
Let's implement Jacobi's method for this problem.
There are some steps which are followed by Gauss Jacobi
method to perform certain operation:
Step 1
‱ Find the value of x1 from the first equation by substituting the initial
values of other unknowns.
‱ Find the value of x2 from the first equation by substituting the initial
values of other unknowns.
‱ Find the value of x3 from the first equation by substituting the initial
values of other unknowns.

And so on till the value of xn is computed from the nth equation using
the initial values of x1, x2,
. xn-1.
6
Step 2
‱

Find out the value of x1 from the first equation by substituting

the values of other unknowns got in the 1st iteration.
‱

Find out the value of x2 from the first equation by substituting

the values of other unknowns got in the 1st iteration.
‱

Find out the value of x3 from the first equation by substituting

the values of other unknowns got in the 1st iteration.

Step 3
‱

Find out the value of x1 from the first equation by substituting

the values of other unknowns got in the 2nd iteration.
‱

Find out the value of x2 from the first equation by substituting

the values of other unknowns got in the 2nd iteration.
‱

Find out the value of x3 from the first equation by substituting

the values of other unknowns got in the 2nd iteration.

7
Example
x1+2x2+3x3 = 4
5x1+ 6x2+7x3 = 8
9x1+x2+2x3 = 3
Sol: As you see the system is diagonal system, therefore the
convergence is assured. Since we want the solution correct up to 4
significant digits, therefore the iterative process will terminate as soon
as we find the successive iteration do not produce any change at first
four significant positions.
We rewrite the given system of equations as
X1 = (4- 2x2-3x3)/1
X2 = (8- 5x1-7x3)/6
X3 = (3- 9x1-x2)/2

8
We start with initial approximation as
X1 = X2 = X3 = 0
Iteration 1: Substituting the initial values in the above equation, we
obtain
X1 =4.0000 X2 = 1.3333

X3 =1.5000

Iteration 2: Substituting the initial values in the above equation, we
obtain
X1 = -3.1667

X2 = -3.7500

X3 = -17.1667

Now compare Gauss Jacobi method from
other linear equation like Gauss Seidel
Method
Gauss Seidel Method
In Jacobi’s method, even though the new values of unknowns are
computed in each iteration, but the values of unknowns in previous
iterations are used in the subsequent iterations.
That is, although a new value of x1 is computed from the first
equation in a current iteration, but it is not used to compute the new
values of other unknowns in the current iteration.

9
Note that the new values of the unknown are better than the old
values, and should be used in preference to the poorer values

Step 1
‱ Find out the value of x1 from the first equation by substituting the
initial values of other unknowns.
‱ Find out the value of x2 from the second equation by substituting
current value of x1 and the initial values of other unknowns.
‱ Find out the value of x3 from the first equation by substituting the
current value of x1 and x2 initial values.

And so on till the value of xn is computed from the nth equation using
the initial values of x1, x2,
. xn-1.

10
Now we will solve same equation by Gauss Seidel method and
then we will find the basic difference between both the methods.
Our equation is:
x1+2x2+3x3 = 4
5x1+ 6x2+7x3 = 8
9x1+x2+2x3 = 3
Sol: As you see the system is diagonal system, therefore the
convergence is assured. Since we want the solution correct up to 4
significant digits, therefore the iterative process will terminate as soon
as we find the successive iteration do not produce any change at first
four significant positions.
We rewrite the given system of equations as:
X1 = (4- 2x2-3x3)/1
X2 = (8- 5x1-7x3)/6
X3 = (3- 9x1-x2)/2
We start with initial approximation as
X1 = X2 = X3 = 0
Iteration 1: Substituting X2 = X3 = 0 in the first equation, we Obtain
11
X1 =4.0000
Substituting X1 = 4.0000 X3 = 0 in the second equation, we Obtain
X2 = -2.0000
Substituting

X1 = 4.0000 X2 = -2.0000 in the third equation, we

Obtain
X3 =-15.5000
Thus, we obtain
X1 =4.0000

X2 = -2.0000

X3 =-15.5000

Iteration2: Now Substituting X2 =-2.0000 X3 = -15.5000 in the first
equation, we Obtain
X1 =54.5000
Substituting X1 = 54.5000 X3 = -15.5000 in the second equation, we
Obtain
X2 = -26.0000
Substituting X1 = 54.5000 X2 = -26.0000 in the third equation, we
Obtain
X3 =-230.7500
Thus, we obtain
X1 =54.5000

X2 = -26.0000

X3 =-230.7500

Note: - now you can easily compare with both the output. Then
you got different answer in both the iterative method.

12
Implementation of Gauss Jacobi method in C
Language:-

#include<stdio.h>
#include<conio.h>
#include<math.h>
float fx(float y,float z)
{
float x;
x=(4-2*y-3*z)/1;
return x;
}
float fy(float x,float z)
{
float y;
y=(8-5*x-7*z)/6;
return y;
}
float fz(float x,float y)
{
13
float z;
z=(3-9*x-y)/2;
return z;
}
void main()
{
float x=0,y=0,z=0,tx,ty,tz;
int i,n;
clrscr();
printf("Enter the number of iteration:");
scanf("%d",&n);
for(i=0;i<n;i++)
{
tx=fx(y,z);
ty=fy(x,z);
tz=fz(x,y);
x=tx;
y=ty;
z=tz;
}
printf("X=%fn",x);
printf("Y=%fn",y);
printf("Z=%f",z);
getch();
}
14
Advantages and disadvantages
Advantages:
1. Iterative.
The Jacobi method first generates inexact results and subsequently
refines its results at each iteration, with the residuals converging at an
exponential rate. For many applications, this is highly desirable.

Disadvantages:
1. Inflexible.
The Jacobi method only works on matrices A for which ρ(A) < 1, or ||
A|| < 1holds. This makes it inapplicable to a large set of problems.
Furthermore, determining whether a matrix satisfies the previous
conditions is expensive to compute.
2. Large Set-Up Time.
The Jacobi method cannot immediately begin producing results.
Before it can begin its iteration, a matrix −D −1(L+U) must be
computed. For large input matrices, this may not be a trivial
operation, as it takes O(n2) time to perform this matrix multiplication.
The result is a significant lag before any results can be output.
15

Weitere Àhnliche Inhalte

Was ist angesagt?

Interpolation with unequal interval
Interpolation with unequal intervalInterpolation with unequal interval
Interpolation with unequal intervalDr. Nirav Vyas
 
Solution of non-linear equations
Solution of non-linear equationsSolution of non-linear equations
Solution of non-linear equationsZunAib Ali
 
03 truncation errors
03 truncation errors03 truncation errors
03 truncation errorsmaheej
 
Laplace transform
Laplace  transform   Laplace  transform
Laplace transform 001Abhishek1
 
Newton raphson method
Newton raphson methodNewton raphson method
Newton raphson methodBijay Mishra
 
MATLAB ODE
MATLAB ODEMATLAB ODE
MATLAB ODEKris014
 
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 equationsMdHaque78
 
Runge Kurta method of order Four and Six
Runge Kurta method of order Four and SixRunge Kurta method of order Four and Six
Runge Kurta method of order Four and SixFahad B. Mostafa
 
Lagrange’s interpolation formula
Lagrange’s interpolation formulaLagrange’s interpolation formula
Lagrange’s interpolation formulaMukunda Madhav Changmai
 
Interpolation Methods
Interpolation MethodsInterpolation Methods
Interpolation MethodsMohammad Tawfik
 
Interpolation and-its-application
Interpolation and-its-applicationInterpolation and-its-application
Interpolation and-its-applicationApurbo Datta
 
Differential equations of first order
Differential equations of first orderDifferential equations of first order
Differential equations of first ordervishalgohel12195
 
Fixed point iteration
Fixed point iterationFixed point iteration
Fixed point iterationIsaac Yowetu
 
Numerical differentiation
Numerical differentiationNumerical differentiation
Numerical differentiationandrushow
 
Bisection & Regual falsi methods
Bisection & Regual falsi methodsBisection & Regual falsi methods
Bisection & Regual falsi methodsDivya Bhatia
 

Was ist angesagt? (20)

Interpolation with unequal interval
Interpolation with unequal intervalInterpolation with unequal interval
Interpolation with unequal interval
 
Solution of non-linear equations
Solution of non-linear equationsSolution of non-linear equations
Solution of non-linear equations
 
Bisection method
Bisection methodBisection method
Bisection method
 
03 truncation errors
03 truncation errors03 truncation errors
03 truncation errors
 
Laplace transform
Laplace  transform   Laplace  transform
Laplace transform
 
Newton raphson method
Newton raphson methodNewton raphson method
Newton raphson method
 
MATLAB ODE
MATLAB ODEMATLAB ODE
MATLAB ODE
 
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
 
Runge Kurta method of order Four and Six
Runge Kurta method of order Four and SixRunge Kurta method of order Four and Six
Runge Kurta method of order Four and Six
 
Lagrange’s interpolation formula
Lagrange’s interpolation formulaLagrange’s interpolation formula
Lagrange’s interpolation formula
 
Interpolation Methods
Interpolation MethodsInterpolation Methods
Interpolation Methods
 
Gauss elimination
Gauss eliminationGauss elimination
Gauss elimination
 
Interpolation and-its-application
Interpolation and-its-applicationInterpolation and-its-application
Interpolation and-its-application
 
Differential equations of first order
Differential equations of first orderDifferential equations of first order
Differential equations of first order
 
Fourier transforms
Fourier transforms Fourier transforms
Fourier transforms
 
Runge-Kutta-Methods.pptx
Runge-Kutta-Methods.pptxRunge-Kutta-Methods.pptx
Runge-Kutta-Methods.pptx
 
Fixed point iteration
Fixed point iterationFixed point iteration
Fixed point iteration
 
Numerical differentiation
Numerical differentiationNumerical differentiation
Numerical differentiation
 
Chain Rule
Chain RuleChain Rule
Chain Rule
 
Bisection & Regual falsi methods
Bisection & Regual falsi methodsBisection & Regual falsi methods
Bisection & Regual falsi methods
 

Andere mochten auch

Solution of equations for methods iterativos
Solution of equations for methods iterativosSolution of equations for methods iterativos
Solution of equations for methods iterativosDUBAN CASTRO
 
Iterative methods
Iterative methodsIterative methods
Iterative methodsrubenarismendi
 
Metodos interactivos
Metodos interactivosMetodos interactivos
Metodos interactivosRobinson
 
Metodos jacobi y gauss seidel
Metodos jacobi y gauss seidelMetodos jacobi y gauss seidel
Metodos jacobi y gauss seidelCesar Mendoza
 
Jacobi and gauss-seidel
Jacobi and gauss-seidelJacobi and gauss-seidel
Jacobi and gauss-seidelarunsmm
 
Iterative methods for the solution of systems of linear equations
Iterative methods for the solution of systems of linear equationsIterative methods for the solution of systems of linear equations
Iterative methods for the solution of systems of linear equationsNORAIMA
 
greek flag
greek flaggreek flag
greek flagaivanoulis
 
The prospect of palm oil tree
The prospect of palm oil treeThe prospect of palm oil tree
The prospect of palm oil treeKimi Yo
 
PERGUNTAS E RESPOSTAS SOBRE OS NOVOS PROCEDIMENTOS NOS AEROPORTOS
PERGUNTAS E RESPOSTAS SOBRE OS NOVOS PROCEDIMENTOS NOS AEROPORTOSPERGUNTAS E RESPOSTAS SOBRE OS NOVOS PROCEDIMENTOS NOS AEROPORTOS
PERGUNTAS E RESPOSTAS SOBRE OS NOVOS PROCEDIMENTOS NOS AEROPORTOSMaria Santos
 
Study material
Study materialStudy material
Study materialyakabubu
 
ignite_mgame_intro 1
ignite_mgame_intro 1ignite_mgame_intro 1
ignite_mgame_intro 1Leo Lee
 
DB Devlop- PostgreSQL 9.2.4 IQ 15.4
DB Devlop- PostgreSQL 9.2.4  IQ 15.4DB Devlop- PostgreSQL 9.2.4  IQ 15.4
DB Devlop- PostgreSQL 9.2.4 IQ 15.4Sunny U Okoro
 
Understanding Your Consumers Through Video: Video Ethnography for Brand Resea...
Understanding Your Consumers Through Video: Video Ethnography for Brand Resea...Understanding Your Consumers Through Video: Video Ethnography for Brand Resea...
Understanding Your Consumers Through Video: Video Ethnography for Brand Resea...Labbrand
 
Ex.le gérondif + corrige
Ex.le gérondif + corrigeEx.le gérondif + corrige
Ex.le gérondif + corrigehelenaaldaz
 
Risk Assessment
Risk AssessmentRisk Assessment
Risk Assessmentnctcmedia12
 
Soal soal
Soal soalSoal soal
Soal soalhome
 

Andere mochten auch (20)

Solution of equations for methods iterativos
Solution of equations for methods iterativosSolution of equations for methods iterativos
Solution of equations for methods iterativos
 
Chapter v
Chapter vChapter v
Chapter v
 
Iterative methods
Iterative methodsIterative methods
Iterative methods
 
Metodos interactivos
Metodos interactivosMetodos interactivos
Metodos interactivos
 
Metodos jacobi y gauss seidel
Metodos jacobi y gauss seidelMetodos jacobi y gauss seidel
Metodos jacobi y gauss seidel
 
metode iterasi Gauss seidel
metode iterasi Gauss seidelmetode iterasi Gauss seidel
metode iterasi Gauss seidel
 
Jacobi and gauss-seidel
Jacobi and gauss-seidelJacobi and gauss-seidel
Jacobi and gauss-seidel
 
Iterative methods for the solution of systems of linear equations
Iterative methods for the solution of systems of linear equationsIterative methods for the solution of systems of linear equations
Iterative methods for the solution of systems of linear equations
 
greek flag
greek flaggreek flag
greek flag
 
The prospect of palm oil tree
The prospect of palm oil treeThe prospect of palm oil tree
The prospect of palm oil tree
 
PERGUNTAS E RESPOSTAS SOBRE OS NOVOS PROCEDIMENTOS NOS AEROPORTOS
PERGUNTAS E RESPOSTAS SOBRE OS NOVOS PROCEDIMENTOS NOS AEROPORTOSPERGUNTAS E RESPOSTAS SOBRE OS NOVOS PROCEDIMENTOS NOS AEROPORTOS
PERGUNTAS E RESPOSTAS SOBRE OS NOVOS PROCEDIMENTOS NOS AEROPORTOS
 
Study material
Study materialStudy material
Study material
 
Religious teaching thought
Religious teaching thoughtReligious teaching thought
Religious teaching thought
 
ignite_mgame_intro 1
ignite_mgame_intro 1ignite_mgame_intro 1
ignite_mgame_intro 1
 
DB Devlop- PostgreSQL 9.2.4 IQ 15.4
DB Devlop- PostgreSQL 9.2.4  IQ 15.4DB Devlop- PostgreSQL 9.2.4  IQ 15.4
DB Devlop- PostgreSQL 9.2.4 IQ 15.4
 
Understanding Your Consumers Through Video: Video Ethnography for Brand Resea...
Understanding Your Consumers Through Video: Video Ethnography for Brand Resea...Understanding Your Consumers Through Video: Video Ethnography for Brand Resea...
Understanding Your Consumers Through Video: Video Ethnography for Brand Resea...
 
Final Paper (Thesis)
Final Paper (Thesis)Final Paper (Thesis)
Final Paper (Thesis)
 
Ex.le gérondif + corrige
Ex.le gérondif + corrigeEx.le gérondif + corrige
Ex.le gérondif + corrige
 
Risk Assessment
Risk AssessmentRisk Assessment
Risk Assessment
 
Soal soal
Soal soalSoal soal
Soal soal
 

Ähnlich wie Term paper

Maths iii quick review by Dr Asish K Mukhopadhyay
Maths iii quick review by Dr Asish K MukhopadhyayMaths iii quick review by Dr Asish K Mukhopadhyay
Maths iii quick review by Dr Asish K MukhopadhyayDr. Asish K Mukhopadhyay
 
Lecture 11 systems of nonlinear equations
Lecture 11 systems of nonlinear equationsLecture 11 systems of nonlinear equations
Lecture 11 systems of nonlinear equationsHazel Joy Chong
 
Math lecture 6 (System of Linear Equations)
Math lecture 6 (System of Linear Equations)Math lecture 6 (System of Linear Equations)
Math lecture 6 (System of Linear Equations)Osama Zahid
 
Analytic Geometry Period 1
Analytic Geometry Period 1Analytic Geometry Period 1
Analytic Geometry Period 1ingroy
 
Quadratic equations
Quadratic equationsQuadratic equations
Quadratic equationsMervin Dayrit
 
Mc ty-cubicequations-2009-1
Mc ty-cubicequations-2009-1Mc ty-cubicequations-2009-1
Mc ty-cubicequations-2009-1Brit4
 
Mc ty-cubicequations-2009-1
Mc ty-cubicequations-2009-1Mc ty-cubicequations-2009-1
Mc ty-cubicequations-2009-1Harsh Arora
 
February 13, 2015
February 13, 2015February 13, 2015
February 13, 2015khyps13
 
Developing Expert Voices
Developing Expert VoicesDeveloping Expert Voices
Developing Expert Voicessuzanne
 
Paso 2 contextualizar y profundizar el conocimiento sobre expresiones algebr...
Paso 2  contextualizar y profundizar el conocimiento sobre expresiones algebr...Paso 2  contextualizar y profundizar el conocimiento sobre expresiones algebr...
Paso 2 contextualizar y profundizar el conocimiento sobre expresiones algebr...Trigogeogebraunad
 
lecture-3 laplce and poisson.pptx .
lecture-3 laplce and poisson.pptx                .lecture-3 laplce and poisson.pptx                .
lecture-3 laplce and poisson.pptx .happycocoman
 
Algebra part 2
Algebra part 2Algebra part 2
Algebra part 2Nadrah Afiati
 

Ähnlich wie Term paper (20)

Maths iii quick review by Dr Asish K Mukhopadhyay
Maths iii quick review by Dr Asish K MukhopadhyayMaths iii quick review by Dr Asish K Mukhopadhyay
Maths iii quick review by Dr Asish K Mukhopadhyay
 
Lecture 11 systems of nonlinear equations
Lecture 11 systems of nonlinear equationsLecture 11 systems of nonlinear equations
Lecture 11 systems of nonlinear equations
 
Math lecture 6 (System of Linear Equations)
Math lecture 6 (System of Linear Equations)Math lecture 6 (System of Linear Equations)
Math lecture 6 (System of Linear Equations)
 
Analytic Geometry Period 1
Analytic Geometry Period 1Analytic Geometry Period 1
Analytic Geometry Period 1
 
Lecture6
Lecture6Lecture6
Lecture6
 
Ca 1.6
Ca 1.6Ca 1.6
Ca 1.6
 
Quadratic equations
Quadratic equationsQuadratic equations
Quadratic equations
 
Act_Fin_RMT
Act_Fin_RMTAct_Fin_RMT
Act_Fin_RMT
 
CALCULUS 2.pptx
CALCULUS 2.pptxCALCULUS 2.pptx
CALCULUS 2.pptx
 
n7-LP-simplex.ppt
n7-LP-simplex.pptn7-LP-simplex.ppt
n7-LP-simplex.ppt
 
Lecture3
Lecture3Lecture3
Lecture3
 
Mc ty-cubicequations-2009-1
Mc ty-cubicequations-2009-1Mc ty-cubicequations-2009-1
Mc ty-cubicequations-2009-1
 
Mc ty-cubicequations-2009-1
Mc ty-cubicequations-2009-1Mc ty-cubicequations-2009-1
Mc ty-cubicequations-2009-1
 
February 13, 2015
February 13, 2015February 13, 2015
February 13, 2015
 
Developing Expert Voices
Developing Expert VoicesDeveloping Expert Voices
Developing Expert Voices
 
Chapter 2
Chapter  2Chapter  2
Chapter 2
 
Paso 2 contextualizar y profundizar el conocimiento sobre expresiones algebr...
Paso 2  contextualizar y profundizar el conocimiento sobre expresiones algebr...Paso 2  contextualizar y profundizar el conocimiento sobre expresiones algebr...
Paso 2 contextualizar y profundizar el conocimiento sobre expresiones algebr...
 
lecture-3 laplce and poisson.pptx .
lecture-3 laplce and poisson.pptx                .lecture-3 laplce and poisson.pptx                .
lecture-3 laplce and poisson.pptx .
 
Algebra
AlgebraAlgebra
Algebra
 
Algebra part 2
Algebra part 2Algebra part 2
Algebra part 2
 

KĂŒrzlich hochgeladen

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel AraĂșjo
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024The Digital Insurer
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 

KĂŒrzlich hochgeladen (20)

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 

Term paper

  • 1. PAPER – CAP643 ï€ż Submitted To: - ï€ż Submitted By: Abhishek Kumar Mrs. Kavisha Mam ~1~ Roll No: - 1207B333 Reg No: - 11210885 Course: - MCA 3rd Sem. Section: D1207
  • 2. ACKNOWLEDGEMENT The experience that we have gathered during this Design Problem has been unique .For this we are pleased to express our deepest sense of gratitude and regards to our respected teacher Mrs. Kavisha Mam for their guidance, inspiration and constructive suggestions that helps us in the preparation of the design problem. I am also thankful to my classmate constant encouragement and support. 2
  • 3. INDEX SL. NO. 1 2 3 4 5 6 7 CONTENTS Introduction Abstract Operation on Jacobi Method Comparison with other linear equation Implementation of Jacobi Method in C Advantages Disadvantages 3 PAGE NO. 4 4-6 6-9 9-12 13-14 15 15
  • 4. INTRODUCTION Gauss Jacobi method is the first iterative method used to solve linear system of equations. This project explains you how to solve the linear equation using Gauss Jacobi iterative method Abstract:This paper is concerned with the application of preconditioning techniques to the well-known Jacobi iterative method for solving the finite difference equations derived from the discretization of self-ad joint elliptic partial differential equations. The convergence properties of this one parameter preconditioned method are analyzed and the value of the optimum preconditioning parameter and the performance of the method determined for a variety of standard problems. Jacobi method involves rewriting equation 1 as follow: X=D-1(L+U)x+D-1b If we express it as an iterative method, we see it takes the form: X(k+1)=Gx(k)+f As a motivational example, we assume start with a linear system like this one: 1 5 9 2 6 1 3 7 2 x1 x2 x3 * 4 = 4 8 3
  • 5. Let us solve the ith equation for xi : X1 = (4- 2x2-3x3)/1 X2 = (8- 5x1-7x3)/6 X3 = (3- 9x1-x2)/2 We can express this as an iterative method and rewrite it in a matrix format. x1 x2 x3 (k+1) = (k) 1/1 0 0 1/6 0 0 0 0 1/2 1/1 0 0 1/6 0 0 0 0 1/2 0 -5 -9 * * -2 0 -1 4 8 3 5 -3 -7 0 x1 * x2 x3 +
  • 6. x1 x2 x3 (k+1) = 0 -5/6 -9/2 -1/2 -1/3 0 -7/6 -1/2 0 * x1 x2 + x3 1/4 8/6 3/2 As you see, this takes the form x(k+1)=Gx(k)+f. Let's implement Jacobi's method for this problem. There are some steps which are followed by Gauss Jacobi method to perform certain operation: Step 1 ‱ Find the value of x1 from the first equation by substituting the initial values of other unknowns. ‱ Find the value of x2 from the first equation by substituting the initial values of other unknowns. ‱ Find the value of x3 from the first equation by substituting the initial values of other unknowns. And so on till the value of xn is computed from the nth equation using the initial values of x1, x2,
. xn-1. 6
  • 7. Step 2 ‱ Find out the value of x1 from the first equation by substituting the values of other unknowns got in the 1st iteration. ‱ Find out the value of x2 from the first equation by substituting the values of other unknowns got in the 1st iteration. ‱ Find out the value of x3 from the first equation by substituting the values of other unknowns got in the 1st iteration. Step 3 ‱ Find out the value of x1 from the first equation by substituting the values of other unknowns got in the 2nd iteration. ‱ Find out the value of x2 from the first equation by substituting the values of other unknowns got in the 2nd iteration. ‱ Find out the value of x3 from the first equation by substituting the values of other unknowns got in the 2nd iteration. 7
  • 8. Example x1+2x2+3x3 = 4 5x1+ 6x2+7x3 = 8 9x1+x2+2x3 = 3 Sol: As you see the system is diagonal system, therefore the convergence is assured. Since we want the solution correct up to 4 significant digits, therefore the iterative process will terminate as soon as we find the successive iteration do not produce any change at first four significant positions. We rewrite the given system of equations as X1 = (4- 2x2-3x3)/1 X2 = (8- 5x1-7x3)/6 X3 = (3- 9x1-x2)/2 8
  • 9. We start with initial approximation as X1 = X2 = X3 = 0 Iteration 1: Substituting the initial values in the above equation, we obtain X1 =4.0000 X2 = 1.3333 X3 =1.5000 Iteration 2: Substituting the initial values in the above equation, we obtain X1 = -3.1667 X2 = -3.7500 X3 = -17.1667 Now compare Gauss Jacobi method from other linear equation like Gauss Seidel Method Gauss Seidel Method In Jacobi’s method, even though the new values of unknowns are computed in each iteration, but the values of unknowns in previous iterations are used in the subsequent iterations. That is, although a new value of x1 is computed from the first equation in a current iteration, but it is not used to compute the new values of other unknowns in the current iteration. 9
  • 10. Note that the new values of the unknown are better than the old values, and should be used in preference to the poorer values Step 1 ‱ Find out the value of x1 from the first equation by substituting the initial values of other unknowns. ‱ Find out the value of x2 from the second equation by substituting current value of x1 and the initial values of other unknowns. ‱ Find out the value of x3 from the first equation by substituting the current value of x1 and x2 initial values. And so on till the value of xn is computed from the nth equation using the initial values of x1, x2,
. xn-1. 10
  • 11. Now we will solve same equation by Gauss Seidel method and then we will find the basic difference between both the methods. Our equation is: x1+2x2+3x3 = 4 5x1+ 6x2+7x3 = 8 9x1+x2+2x3 = 3 Sol: As you see the system is diagonal system, therefore the convergence is assured. Since we want the solution correct up to 4 significant digits, therefore the iterative process will terminate as soon as we find the successive iteration do not produce any change at first four significant positions. We rewrite the given system of equations as: X1 = (4- 2x2-3x3)/1 X2 = (8- 5x1-7x3)/6 X3 = (3- 9x1-x2)/2 We start with initial approximation as X1 = X2 = X3 = 0 Iteration 1: Substituting X2 = X3 = 0 in the first equation, we Obtain 11
  • 12. X1 =4.0000 Substituting X1 = 4.0000 X3 = 0 in the second equation, we Obtain X2 = -2.0000 Substituting X1 = 4.0000 X2 = -2.0000 in the third equation, we Obtain X3 =-15.5000 Thus, we obtain X1 =4.0000 X2 = -2.0000 X3 =-15.5000 Iteration2: Now Substituting X2 =-2.0000 X3 = -15.5000 in the first equation, we Obtain X1 =54.5000 Substituting X1 = 54.5000 X3 = -15.5000 in the second equation, we Obtain X2 = -26.0000 Substituting X1 = 54.5000 X2 = -26.0000 in the third equation, we Obtain X3 =-230.7500 Thus, we obtain X1 =54.5000 X2 = -26.0000 X3 =-230.7500 Note: - now you can easily compare with both the output. Then you got different answer in both the iterative method. 12
  • 13. Implementation of Gauss Jacobi method in C Language:- #include<stdio.h> #include<conio.h> #include<math.h> float fx(float y,float z) { float x; x=(4-2*y-3*z)/1; return x; } float fy(float x,float z) { float y; y=(8-5*x-7*z)/6; return y; } float fz(float x,float y) { 13
  • 14. float z; z=(3-9*x-y)/2; return z; } void main() { float x=0,y=0,z=0,tx,ty,tz; int i,n; clrscr(); printf("Enter the number of iteration:"); scanf("%d",&n); for(i=0;i<n;i++) { tx=fx(y,z); ty=fy(x,z); tz=fz(x,y); x=tx; y=ty; z=tz; } printf("X=%fn",x); printf("Y=%fn",y); printf("Z=%f",z); getch(); } 14
  • 15. Advantages and disadvantages Advantages: 1. Iterative. The Jacobi method first generates inexact results and subsequently refines its results at each iteration, with the residuals converging at an exponential rate. For many applications, this is highly desirable. Disadvantages: 1. Inflexible. The Jacobi method only works on matrices A for which ρ(A) < 1, or || A|| < 1holds. This makes it inapplicable to a large set of problems. Furthermore, determining whether a matrix satisfies the previous conditions is expensive to compute. 2. Large Set-Up Time. The Jacobi method cannot immediately begin producing results. Before it can begin its iteration, a matrix −D −1(L+U) must be computed. For large input matrices, this may not be a trivial operation, as it takes O(n2) time to perform this matrix multiplication. The result is a significant lag before any results can be output. 15