summaryrefslogtreecommitdiff
path: root/2.3-1/tests/unit_tests/float/test_float_OpRc.sci
diff options
context:
space:
mode:
authoryash11122017-07-07 21:20:49 +0530
committeryash11122017-07-07 21:20:49 +0530
commit9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0 (patch)
treef50d6e06d8fe6bc1a9053ef10d4b4d857800ab51 /2.3-1/tests/unit_tests/float/test_float_OpRc.sci
downloadScilab2C-9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0.tar.gz
Scilab2C-9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0.tar.bz2
Scilab2C-9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0.zip
sci2c arduino updated
Diffstat (limited to '2.3-1/tests/unit_tests/float/test_float_OpRc.sci')
-rw-r--r--2.3-1/tests/unit_tests/float/test_float_OpRc.sci46
1 files changed, 46 insertions, 0 deletions
diff --git a/2.3-1/tests/unit_tests/float/test_float_OpRc.sci b/2.3-1/tests/unit_tests/float/test_float_OpRc.sci
new file mode 100644
index 00000000..3e084595
--- /dev/null
+++ b/2.3-1/tests/unit_tests/float/test_float_OpRc.sci
@@ -0,0 +1,46 @@
+//SCI2C: DEFAULT_PRECISION= FLOAT
+
+function test_float_OpRc()
+
+ a = [1 , 2 , 3 , 4]; // d0d0OpRcs2
+ b = [7 , a];// d0d2OpRcs2
+ c = [a , 7];// d2d0OpRcs2
+ d = [a , b];// d2d2OpRcs2
+ disp(a);
+ disp(b);
+ disp(c);
+ disp(d);
+
+ e = [1*%i , 2*%i , 3*%i , 4*%i ];// z0z0OpRcz2
+ f = [7 , e];// z0z2OpRcz2
+ g = [e , 7];// z2z0OpRcz2
+ h = [e , f];// z2z2OpRcz2
+
+ disp(e);
+ disp(f);
+ disp(g);
+ disp(h);
+
+
+ i = [%i , 4.5]; // z0d0OpRcz2
+ j = [4.5 , %i ]; // d0z0OpRcz2
+ k = [4.5 , i ]; // d0z2OpRcz2
+ l = [i , 4.5]; // z2d0OpRcz2
+
+ disp(i);
+ disp(j);
+ disp(k);
+ disp(l);
+
+ m = [1 , 4.5];
+ n = [%i , m ]; // z0d2OpRcz2
+ o = [m , %i ]; // d0z2OpRcz2
+ p = [m , n ]; // d2z2OpRcz2
+ q = [n , m ]; // z2d2OpRcz2
+
+ disp(n);
+ disp(o);
+ disp(p);
+ disp(q);
+
+endfunction