summaryrefslogtreecommitdiff
path: root/2.3-1/tests/unit_tests/double/test_Trace.sci
blob: 5fde91d9e7cfce91cb838cf4660c6fe8c10559d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function test_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