1.Develop a computer code sor by using the SOR iterative algorithm and solve the system of equations given . Continue iteration until convergence is reached for all variables with a tolerance limit of “s ¼ 0.01%. Present your results in a summary table for unknown values and associated approximate percent relative error in each iteration.

2.Use the conjugate gradient algorithm to solve the following system of equations.

(a) Show hand calculations in two iterations.

(b) Develop a computer code cg implementing the conjugate gradient algorithm and solve the system of equations. Continue iterations until all unknowns are accurate to three decimal places, i.e., converged to a specified tolerance of “s ¼ 0.0009. Present the results in a summary table showing values and percent relative error in each iteration step.

## Solution:

##
Looking for help with your homework?

Grab a 30% Discount and Get your paper done!

Place an Order