Question: Use python / jupyter notebook Dehghan et al . ( 2 0 1 7 ) developed two - step iterative method called the diagonal and
Use python jupyter notebook
Dehghan et al developed twostep iterative method called the diagonal and offdiagonal splitting iteration method for solving systems of linear equations where the coefficient matri:
is split into its diagonal and offdiagonal entries, ie with
Each iteration involves solving for an intermediate iteration of the solution vector, from
that is used to solve for the next iteration of the solution vector, from
where and for dots
The system of equations described by involves a diagonal matrix. Thus, can be solved efficiently by elementwise division between the constants vector and the main diagonal elements.
The system of equations described by involves a lower triangular matrix Thus, can be solved efficiently via forward subsitution.
You are not allowed to use matrix inversion to solve systems of equations and
Part B
Write a Python function tol for solving a system of linear equations where is the coefficients matrix, is the constants vector, the
vector of initial values, and are parameters affecting convergence provided and and tol is the error tolerance. The output of Dos should be err,
where is the solution vector, err is the Euclidean norm of the error vector and corresponds to the number of iterations.
Allow to accept either a single value or a vector of values. When the input is a single value, your Python function should internally convert it into a vector of initial values, egdots, or
dots,
Use your function to solve the system of linear equations defined as follows:
dots,
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
