blob: 74d20d930fbb5946a071a8b0cc023d7fdb9c8ba3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//SCI2C: DEFAULT_PRECISION= FLOAT
function test_float_Trace()
a = [1 2 3; 4 %pi 5; 4.5 -3 2];
disp(trace(a));
b = %i * [1 2 3; 4 %pi 5; 4.5 -3 2];
disp(trace(b));
disp(trace(5));
disp(trace(%i));
endfunction
|