Question: Q 3 + 2 Q 4 - 2 Q 2 = 0 Q 5 + 2 Q 6 - 2 Q 4 = 0 3

Q3+2Q4-2Q2=0
Q5+2Q6-2Q4=0
3Q7-2Q6=0
Q1=Q2+Q3
Q3=Q4+Q5
Q5=Q6+Q7
[Hint: Supplement these equations with Q1=1 as the first equation to end up with 7 equations in seven unknowns]
Find A matrix and b vector
Solve the system of equations to obtain the flow in every stream using Gauss Naive elimination method [Call it X_GN (71 column vector)]
Solve using Gauss elimination with pivoting [Call it X_GP]
Solve using Gauss Seidel [Call it x_GS]
[Note: Getting a solution full of NaN means the method is unable to solve the system. If this happens think about the reason for that]
Script=
note-write the script in MATLAB code not in python or any other,just in MATLAB not explain it but write the actual script
Q 3 + 2 Q 4 - 2 Q 2 = 0 Q 5 + 2 Q 6 - 2 Q 4 = 0 3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!