summaryrefslogtreecommitdiff
path: root/964/CH9/EX9.6/9_6.sce
blob: d11ea141b5925bed5fbf5af6688ec0930a410027 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
clc;
clear;
a11=1;
a12=2;
b1=10;
a21=1.1;
a22=2;
b2=10.4;
x1=(b1*a22-a12*b2)/(a11*a22-a12*a21);
x2=(b2*a11-a21*b1)/(a11*a22-a12*a21);
disp("For the original system:")
disp(x1,"x1=")
disp(x2,"x2=")
a21=1.05;
x1=(b1*a22-a12*b2)/(a11*a22-a12*a21);
x2=(b2*a11-a21*b1)/(a11*a22-a12*a21);
disp("For the new system:")
disp(x1,"x1=")
disp(x2,"x2=")