summaryrefslogtreecommitdiff
path: root/src/Scilab2C/SCI2CTests/Mes_tests/matrixOperations/mainfunctionDet.sci
blob: fbd59649fd7ea1964703be54af169d074404d9d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//SCI2C: DEFAULT_PRECISION= DOUBLE
function mainfunction()

//test det

//d0
disp (det(3))

//z0
disp (det(3+%i*4))


c=[4 2 3 ;8 8 4; 3 4 5]
e=[4 2 3 1;8 8 4 4; 3 4 5 7; 12 2 3 4]
d=[4 2 3 ;8 8-1*%i 4; 3+4*%i 4 5]
f=[4+%i 2 3 1*%i ;3+4*%i 8-2*%i 8+4*%i 4+2*%i ; 3 4+2*%i 5 7; 12+2*%i 2 3 4]

//d2
disp (det(c))
disp (det(e))

//z2
disp (det(d))
disp (det(f))



endfunction