From 6a320264c2de3d6dd8cc1d1327b3c30df4c8cb26 Mon Sep 17 00:00:00 2001 From: Siddhesh Wani Date: Mon, 25 May 2015 14:46:31 +0530 Subject: Original Version --- .../scilabcode/mainfunction.sci | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 2.3-1/tests/unit_tests/test064_OpMinusFloatComplex/scilabcode/mainfunction.sci (limited to '2.3-1/tests/unit_tests/test064_OpMinusFloatComplex/scilabcode') diff --git a/2.3-1/tests/unit_tests/test064_OpMinusFloatComplex/scilabcode/mainfunction.sci b/2.3-1/tests/unit_tests/test064_OpMinusFloatComplex/scilabcode/mainfunction.sci new file mode 100644 index 00000000..a1e0d8c6 --- /dev/null +++ b/2.3-1/tests/unit_tests/test064_OpMinusFloatComplex/scilabcode/mainfunction.sci @@ -0,0 +1,43 @@ +//SCI2C: DEFAULT_PRECISION= FLOAT + +function mainfunction() + +s1 = -5.4; +disp('s1'); +disp(s1); + +s2 = -2.2-4*%i; +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); + +B = -2.11*A-%i*A; +disp('B'); + +disp('o1 = -s1 - s2;'); +o1 = -s1 - s2; +disp(o1); + +disp('o1 = -3.4 - 4.5;'); +o1 = (-3.4-%i) - (4.5-%i); +disp(o1); + +disp('o2 = -3.4 - B - A;'); +o2 = -3.4 - B - A; +disp(o2); + +disp('o3 = A - (-3.4);'); +o3 = A - (-3.4); +disp(o3); + +disp('o4 = A - A;'); +o4 = A - B; +disp(o4); + +disp('o5 = -A;'); +o5 = -B; +disp(o5); +endfunction -- cgit