summaryrefslogtreecommitdiff
path: root/tests/unit_tests/test038_FindI2O1Float/scilabcode/mainfunction.sci
blob: 789f3b730b3e7dde1e5942bf708d50166180da34 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//SCI2C: DEFAULT_PRECISION= FLOAT

function mainfunction()

s1 = -5.4;
disp('s1');
disp(s1);

s2 = 2.2;
disp('s2');
disp(s2);

A = ((1.2:0.99:4.9)')*(-2.3:1.1:3.9)
disp('A = ((1.2:0.99:4.9)'')*(-2.3:1.1:3.9)');
disp(A);

disp('o1 = -s1 + s2;');
o1 = -s1 + s2;
disp(o1);

disp('o1 = -3.4 + 4.5;');
o1 = -3.4 + 4.5;
disp(o1);

disp('o2 = -3.4 + A;');
o2 = -3.4 + A;
disp(o2);

disp('o3 = A + (-3.4);');
o3 = A + (-3.4);
disp(o3);

disp('o4 = A + A;');
o4 = A + A;
disp(o4);

disp('o5 = +A;');
o5 = +A;
disp(o5);

st0 = '#';
disp('st0')
disp(st0)

st1 = 'ciao';
disp('st1')
disp(st1)

st2 = 'bye';
disp('st2')
disp(st2)

st3 = st0+st1+st2;
disp('st3 = st0+st1+st2;')
disp(st3)
endfunction