Question: 1: Write a Program that, ask the user values of [a, b, c, d,s1 and s2] finds the x and y for the following equation
1: Write a Program that, ask the user values of [a, b, c, d,s1 and s2] finds the x and y for the following equation system. Use different methods for each approach. (50 Points): ax+by=s1cx+dy=s2 a) Calculate using analytical approach. (Hint: Matrix approach) b) Calculate using Jacobi method. Jacobi method should be run 100 iterations. c) Compare the results of each approach (Calculate the percentage and absolute error). Make sure the equation system is solvable with Jacobi method (a>b and c>d) and system is solvable generally (det(A)=0). Give appropriate errors when necessary. A=[acbd]A1=[dcba]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
