summaryrefslogtreecommitdiff
path: root/2.3-1/tests/unit_tests/double/test_Meanf.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/double/test_Meanf.sci
downloadScilab2C-9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0.tar.gz
Scilab2C-9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0.tar.bz2
Scilab2C-9e5793a7b05b23e6044a6d7a9ddd5db39ba375f0.zip
sci2c arduino updated
Diffstat (limited to '2.3-1/tests/unit_tests/double/test_Meanf.sci')
-rw-r--r--2.3-1/tests/unit_tests/double/test_Meanf.sci48
1 files changed, 48 insertions, 0 deletions
diff --git a/2.3-1/tests/unit_tests/double/test_Meanf.sci b/2.3-1/tests/unit_tests/double/test_Meanf.sci
new file mode 100644
index 00000000..139432ce
--- /dev/null
+++ b/2.3-1/tests/unit_tests/double/test_Meanf.sci
@@ -0,0 +1,48 @@
+
+function test_Meanf()
+
+ disp (meanf (4 , 5 )) ;
+ disp ("*******1*******");
+ disp (meanf ([4 5 6], [1 2 3]));
+ disp ("*******2*******");
+ disp (meanf (4 , 5*%i )) ;
+ disp ("*******3*******");
+ disp (meanf ([4 5 6], [1 2 3]*%i));
+ disp ("*******4*******");
+
+
+
+ disp (meanf ([4 5 6 ; 7 8 9], [1 2 3 ; 4 5 6],1));
+ disp ("*******5*******");
+ disp (meanf ([4 7; 5 8; 6 9], [1 4; 2 5; 3 6],2));
+// complex
+ disp ("*******6*******");
+ disp (meanf (4 +4*%i , 5 )) ;
+ disp ("*******7*******");
+ disp (meanf ([4*%i, 5+6*%i, 6], [1 2 3]));
+ disp ("*******8*******");
+ disp (meanf (4 +4*%i , 5*%i )) ;
+ disp ("*******9*******");
+ disp (meanf ([4*%i, 5+6*%i, 6], [1 2 3]*%i));
+ disp ("******10*******");
+
+
+ disp (meanf ([4 5 6 ; 7 8 9]*%i, [1 2 3 ; 4 5 6],1));
+ disp ("******11*******");
+ disp (meanf ([4 7; 5 8; 6 9], [1 4; 2 5; 3 6]*%i,2));
+ disp ("******12*******");
+ disp (meanf ([4 5 6 ; 7 8 9],[1 2 3 ; 4 8 9] + [1 2 3 ; 4 5 6]*%i,1));
+ disp ("******13*******");
+ disp (meanf ([4 7; 5 8; 6 9]*%i, [1 4; 2 5; 3 6],2));
+ disp ("******14*******");
+
+ disp (meanf ([4 5 6 ; 7 8 9]*%i, [1 2 3 ; 4 5 6]*%i,1));
+ disp ("******15*******");
+ disp (meanf ([4 7; 5 8; 6 9]*%i, [1 4; 2 5; 3 6]*%i,2));
+ disp ("******16*******");
+//
+
+
+//
+
+endfunction