diff options
author | simon | 2009-08-24 12:02:31 +0000 |
---|---|---|
committer | simon | 2009-08-24 12:02:31 +0000 |
commit | 28935c0b0b25da99e379200c1e258a520c42dd86 (patch) | |
tree | 8a9bff171b895d65d3d58a01e5fc00b597383e7e /tests/unit_tests/test_float_Stdevf.sci | |
parent | 4c710b6a46dc89dfcf621429398ccd5800135b19 (diff) | |
download | scilab2c-28935c0b0b25da99e379200c1e258a520c42dd86.tar.gz scilab2c-28935c0b0b25da99e379200c1e258a520c42dd86.tar.bz2 scilab2c-28935c0b0b25da99e379200c1e258a520c42dd86.zip |
Added all test in float version , they all passed
Diffstat (limited to 'tests/unit_tests/test_float_Stdevf.sci')
-rw-r--r-- | tests/unit_tests/test_float_Stdevf.sci | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/tests/unit_tests/test_float_Stdevf.sci b/tests/unit_tests/test_float_Stdevf.sci new file mode 100644 index 00000000..d429e557 --- /dev/null +++ b/tests/unit_tests/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 |