summaryrefslogtreecommitdiff
path: root/tests/unit_tests/float/test_float_Stdevf.sci
diff options
context:
space:
mode:
authoryash11122017-07-07 21:20:49 +0530
committeryash11122017-07-07 21:20:49 +0530
commit3f52712f806fbd80d66dfdcaff401e5cf94dcca4 (patch)
treea8333b8187cb44b505b9fe37fc9a7ac8a1711c10 /tests/unit_tests/float/test_float_Stdevf.sci
downloadScilab2C_fossee_old-3f52712f806fbd80d66dfdcaff401e5cf94dcca4.tar.gz
Scilab2C_fossee_old-3f52712f806fbd80d66dfdcaff401e5cf94dcca4.tar.bz2
Scilab2C_fossee_old-3f52712f806fbd80d66dfdcaff401e5cf94dcca4.zip
sci2c arduino updated
Diffstat (limited to 'tests/unit_tests/float/test_float_Stdevf.sci')
-rw-r--r--tests/unit_tests/float/test_float_Stdevf.sci46
1 files changed, 46 insertions, 0 deletions
diff --git a/tests/unit_tests/float/test_float_Stdevf.sci b/tests/unit_tests/float/test_float_Stdevf.sci
new file mode 100644
index 0000000..d429e55
--- /dev/null
+++ b/tests/unit_tests/float/test_float_Stdevf.sci
@@ -0,0 +1,46 @@
+//SCI2C: DEFAULT_PRECISION= FLOAT
+
+function test_float_Stdevf()
+ disp (stdevf (4 , 5 )) ;
+ disp ("*******1*******");
+ disp (stdevf ([4 5 6], [1 2 3]));
+ disp ("*******2*******");
+ disp (stdevf (4 , 5*%i )) ;
+ disp ("*******3*******");
+ disp (stdevf ([4 5 6], [1 2 3]*%i));
+ disp ("*******4*******");
+
+
+
+ disp (stdevf ([4 5 6 ; 7 8 9], [1 2 3 ; 4 5 6],1));
+ disp ("*******5*******");
+ disp (stdevf ([4 7; 5 8; 6 9], [1 4; 2 5; 3 6],2));
+// complex
+ disp ("*******6*******");
+ disp (stdevf (4 +4*%i , 5 )) ;
+ disp ("*******7*******");
+ disp (stdevf ([4*%i, 5+6*%i, 6], [1 2 3]));
+ disp ("*******8*******");
+ disp (stdevf (4 +4*%i , 5*%i )) ;
+ disp ("*******9*******");
+ disp (stdevf ([4*%i, 5+6*%i, 6], [1 2 3]*%i));
+ disp ("******10*******");
+
+
+ disp (stdevf ([4 5 6 ; 7 8 9]*%i, [1 2 3 ; 4 5 6],1));
+ disp ("******11*******");
+ disp (stdevf ([4 7; 5 8; 6 9], [1 4; 2 5; 3 6]*%i,2));
+ disp (stdevf ([4 5 6 ; 7 8 9],[1 2 3 ; 4 8 9] + [1 2 3 ; 4 5 6]*%i,1));
+ disp ("******12*******");
+ disp (stdevf ([4 5 6 ; 7 8 9], [1 2 3 ; 4 5 6]*%i,1));
+ disp ("******13*******");
+ disp (stdevf ([4 7; 5 8; 6 9]*%i, [1 4; 2 5; 3 6],2));
+ disp ("******14*******");
+
+ disp (stdevf ([4 5 6 ; 7 8 9]*%i, [1 2 3 ; 4 5 6]*%i,1));
+ disp ("******15*******");
+ disp (stdevf ([4 7; 5 8; 6 9]*%i, [1 4; 2 5; 3 6]*%i,2));
+ disp ("******16*******");
+//
+
+endfunction