summaryrefslogtreecommitdiff
path: root/src/statisticsFunctions/mean/testDoubleMean.c
diff options
context:
space:
mode:
authorcornet2009-04-23 09:14:00 +0000
committercornet2009-04-23 09:14:00 +0000
commit11ff72181710d769d4c7383194116610c1b6eacb (patch)
treeacedff47125a311cac814b9a9c53725122979d93 /src/statisticsFunctions/mean/testDoubleMean.c
parent1199930d082d0e8cfe3ae9119b65244844d0fc44 (diff)
downloadscilab2c-11ff72181710d769d4c7383194116610c1b6eacb.tar.gz
scilab2c-11ff72181710d769d4c7383194116610c1b6eacb.tar.bz2
scilab2c-11ff72181710d769d4c7383194116610c1b6eacb.zip
add statisticsFunctions tests projects
Diffstat (limited to 'src/statisticsFunctions/mean/testDoubleMean.c')
-rw-r--r--src/statisticsFunctions/mean/testDoubleMean.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/statisticsFunctions/mean/testDoubleMean.c b/src/statisticsFunctions/mean/testDoubleMean.c
index e430c7eb..1e1b2576 100644
--- a/src/statisticsFunctions/mean/testDoubleMean.c
+++ b/src/statisticsFunctions/mean/testDoubleMean.c
@@ -319,12 +319,12 @@ static int zrowmeanaTest(void) {
}
assert(zreals(rowMeanmedIn_2_6[0]) == 0.1 / 2.0 && zimags(rowMeanmedIn_2_6[0]) == 2.1 / 2.0);
assert( ( fabs(zreals(rowMeanmedIn_2_6[1]) ) - ( 0.5 / 2.0 ) ) / fabs ( zreals(rowMeanmedIn_2_6[1]) ) < 3e-16 );
- assert(fabs(zimags(rowMeanmedIn_2_6[1]) == 1.7 / 2.0) < 1e-16);
+ assert(fabs(double(zimags(rowMeanmedIn_2_6[1]) == 1.7 / 2.0)) < 1e-16);
assert( ( fabs(zreals(rowMeanmedIn_2_6[2]) ) - ( 0.9 / 2.0 ) ) / fabs ( zreals(rowMeanmedIn_2_6[2]) ) < 3e-16 );
- assert(fabs(zimags(rowMeanmedIn_2_6[2]) == 1.3 / 2.0) < 1e-16);
- assert(fabs(zreals(rowMeanmedIn_2_6[3]) == 1.3 / 2.0) < 1e-16);
+ assert(fabs(double(zimags(rowMeanmedIn_2_6[2]) == 1.3 / 2.0)) < 1e-16);
+ assert(fabs(double(zreals(rowMeanmedIn_2_6[3]) == 1.3 / 2.0)) < 1e-16);
assert( ( fabs(zimags(rowMeanmedIn_2_6[3]) ) - ( 0.9 / 2.0 ) ) / fabs ( zimags(rowMeanmedIn_2_6[3]) ) < 3e-16 );
- assert(fabs(zreals(rowMeanmedIn_2_6[4]) == 1.7 / 2.0) < 1e-16);
+ assert(fabs(double(zreals(rowMeanmedIn_2_6[4]) == 1.7 / 2.0)) < 1e-16);
assert( ( fabs(zimags(rowMeanmedIn_2_6[4]) ) - ( 0.5 / 2.0 ) ) / fabs ( zimags(rowMeanmedIn_2_6[4]) ) < 3e-16 );
assert(zreals(rowMeanmedIn_2_6[5]) == 2.1 / 2.0 && zimags(rowMeanmedIn_2_6[5]) == 0.1 / 2.0);