Professional Documents
Culture Documents
التحليل العددي
علي محمد عبد الشاهد:إعداد الدكتور
2
a.abdulshahed@eng.misuratau.edu.ly إعداد الدكتور علي عبد الشاهد
Systems of Linear Equations Matrix Inversion Method
Consider that matrix A is a non-singular matrix (invertible), then A–1 exists. Pre-multiplying previous Eq. with A–1, we get
3
a.abdulshahed@eng.misuratau.edu.ly إعداد الدكتور علي عبد الشاهد
Systems of Linear Equations Matrix Inversion Method
4
a.abdulshahed@eng.misuratau.edu.ly إعداد الدكتور علي عبد الشاهد
Systems of Linear Equations Matrix Inversion Method
5
a.abdulshahed@eng.misuratau.edu.ly إعداد الدكتور علي عبد الشاهد
Systems of Linear Equations Matrix Inversion Method
6
a.abdulshahed@eng.misuratau.edu.ly إعداد الدكتور علي عبد الشاهد
7
Systems of Linear Equations Gauss Elimination Method
Gauss elimination method is one of the simplest algorithmic procedures in all known direct methods with a minimum
number of arithmetic operations and hence most widely used direct method.
• In the first phase, the system of linear equations is converted into an equivalent upper triangular system with the aid of
8
a.abdulshahed@eng.misuratau.edu.ly إعداد الدكتور علي عبد الشاهد
Systems of Linear Equations Gauss Elimination Method
9
a.abdulshahed@eng.misuratau.edu.ly إعداد الدكتور علي عبد الشاهد
Systems of Linear Equations Gauss Elimination Method
10
a.abdulshahed@eng.misuratau.edu.ly إعداد الدكتور علي عبد الشاهد
Systems of Linear Equations Gauss Elimination Method
11
a.abdulshahed@eng.misuratau.edu.ly إعداد الدكتور علي عبد الشاهد
12
Systems of Linear Equations Python
13
a.abdulshahed@eng.misuratau.edu.ly إعداد الدكتور علي عبد الشاهد
Systems of Linear Equations Python
14
a.abdulshahed@eng.misuratau.edu.ly إعداد الدكتور علي عبد الشاهد
Systems of Linear Equations Pivoting Strategies for Gauss Elimination Method
So far, we have applied direct methods without discussing the round-off error caused due to finite digits floating point
arithmetic. The round-off error mainly depends on the total number of operational counts, and this number is minimum in
case of Gauss elimination method. Therefore, at this moment, we are presenting Gauss elimination method for explanations.
In this section, we will discuss partial, scaled and complete pivoting strategies to reduce the round-off error.
Partial Pivoting: At each stage (ith), we make the pivot element (aii) largest in magnitude by the elements below pivot element
in that column, by simple row conversion. It is to ensure that magnitudes of the multipliers are less than 1 for each row. That
is, at ith stage, we simply want
15
a.abdulshahed@eng.misuratau.edu.ly إعداد الدكتور علي عبد الشاهد
16
It is not always possible to get the
correct result with partial pivoting,
especially if the variation in the
magnitude of elements of matrix A is
large.
17
HW
المطلوب مقارنة الطرق المباشرة السابقة من حيث عدد العمليات وزمن التنفيد مستخدما 3أنظمة مختلفة
استخدم البايثون لتنفيد المقارنات
18
Systems of Linear Equations Iterative Methods
• In direct methods, as a reference example of Gauss elimination method, we have discussed the round-off error and some
remedies to reduce it.
• Certain scientific problems produce millions of equations, and large numbers of arithmetic computations are involved.
The direct methods are easy to implement, but round-off error is significant in case of large systems.
• The iterative procedures can be used for solution of such systems. The iterative methods may require large numbers of
iterations to produce the result with higher accuracy. But, once the algorithms for these methods are implemented, these
iterations can be easily computed with the advent of high-speed computers.
• For more accuracy and lesser computational work, direct and iterative methods can be mixed up. First, we can apply the
direct method to compute the solution and then further improve this solution for more accuracy with an iterative
procedure.
19
a.abdulshahed@eng.misuratau.edu.ly إعداد الدكتور علي عبد الشاهد
Systems of Linear Equations Iterative Methods
Jacobi Method (or) Method of Simultaneous Displacement
20
a.abdulshahed@eng.misuratau.edu.ly إعداد الدكتور علي عبد الشاهد
Systems of Linear Equations Iterative Methods
Jacobi Method (or) Method of Simultaneous Displacement
21
a.abdulshahed@eng.misuratau.edu.ly إعداد الدكتور علي عبد الشاهد
Systems of Linear Equations Iterative Methods
Jacobi Method (or) Method of Simultaneous Displacement
22
a.abdulshahed@eng.misuratau.edu.ly إعداد الدكتور علي عبد الشاهد
23
24
25
26
27
28
29