summaryrefslogtreecommitdiff
path: root/src/Scilab2C/SCI2CTests/Mes_tests/statistic Functions/mainfunctionSum.sci
blob: 7302398e696e1197570077bea32caabd603f1359 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//SCI2C: DEFAULT_PRECISION= DOUBLE

function mainfunction()

//test sum


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



disp (sum(c))
disp (sum(c,1))
disp (sum(c,2))
disp (sum(d))
disp (sum(d,1))
disp (sum(d,2))

endfunction