summaryrefslogtreecommitdiff
path: root/122/CH9/EX9.9/exa9_9.sce
blob: be8d968b2af52611af0dd098bfc82127fe5000d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Example 9-9
// Linear dependence of vectors

clear; clc;
xdel(winsid());  //close all windows
mode(0)

x1 = [1; 2; 3]
x2 = [1; 0; 1]
x3 = [2; 2; 4]
A = [x1 x2 x3];
disp(A,'[x1:x2:x3] =');
disp(clean(det(A)),'det([x1:x2:x3]) ='); // singular

x3 = [2;2;2]
A = [x1 x2 x3];
disp(A,'[x1:x2:x3] =');
disp(det(A),'det([x1:x2:x3]) =');// non singular