summaryrefslogtreecommitdiff
path: root/1332/CH6/EX6.9/6_9.sce
blob: 30679323f33c4358d29db79e40f50a16eaf9a52a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Example 6.9
//Complex System of Linear Equation
//Page no. 244
clc;clear;close;

for i=1:7
    s=0;
    for j=1:7
        A(i,j)=j^i
        s=s+(-1)^(j+1)*A(i,j)
    end
    B(i,1)=s;
end
X=inv(A)*B
disp(X,'The Solution = ')