diff options
author | torset | 2009-02-27 13:30:30 +0000 |
---|---|---|
committer | torset | 2009-02-27 13:30:30 +0000 |
commit | 05fb6a62c83ae7cea37aa2795e61697b3560f135 (patch) | |
tree | e4135e36ec029b677faeb18125b19fa4a6d11a6c /src/elementaryFunctions/asinh/testDoubleAsinh.c | |
parent | 3ce979f5740261766f4248864c0758d6cb6af857 (diff) | |
download | scilab2c-05fb6a62c83ae7cea37aa2795e61697b3560f135.tar.gz scilab2c-05fb6a62c83ae7cea37aa2795e61697b3560f135.tar.bz2 scilab2c-05fb6a62c83ae7cea37aa2795e61697b3560f135.zip |
change precision for tests : put it to 3e-16 for double and 3e-6 for float
Diffstat (limited to 'src/elementaryFunctions/asinh/testDoubleAsinh.c')
-rw-r--r-- | src/elementaryFunctions/asinh/testDoubleAsinh.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/elementaryFunctions/asinh/testDoubleAsinh.c b/src/elementaryFunctions/asinh/testDoubleAsinh.c index 8eb3baaf..1501ee87 100644 --- a/src/elementaryFunctions/asinh/testDoubleAsinh.c +++ b/src/elementaryFunctions/asinh/testDoubleAsinh.c @@ -431,7 +431,7 @@ void dasinhsTest(void) { for (i=0;i<200;i++){ out=dasinhs(in[i]); - assert ( ( (fabs(out-res[i])) / (fabs(out)) ) <1e-15); + assert ( ( (fabs(out-res[i])) / (fabs(out)) ) <3e-16); } } @@ -447,8 +447,8 @@ void zasinhsTest(void) { in=DoubleComplex(inR[i],inI[i]); out = zasinhs(in); - assert( ( ( fabs( zreals(out)-resR[i] ) ) / (fabs(zreals(out)) ) ) <1e-15); - assert( ( ( fabs( zimags(out)-resI[i] ) ) / (fabs(zimags(out)) ) ) <1e-15); + assert( ( ( fabs( zreals(out)-resR[i] ) ) / (fabs(zreals(out)) ) ) <3e-16); + assert( ( ( fabs( zimags(out)-resI[i] ) ) / (fabs(zimags(out)) ) ) <3e-16); } } @@ -460,7 +460,7 @@ void dasinhaTest(void) { dasinha(in,200,out); for (i=0;i<200;i++){ - assert ( ( (fabs(out[i]-res[i])) / (fabs(out[i])) ) <1e-15); + assert ( ( (fabs(out[i]-res[i])) / (fabs(out[i])) ) <3e-16); }} void zasinhaTest(void) { @@ -476,8 +476,8 @@ void zasinhaTest(void) { } zasinha(in,200,out); for (i=0;i<200;i++){ - assert( ( ( fabs( zreals(out[i])-resR[i] ) ) / (fabs(zreals(out[i])) ) ) <1e-15); - assert( ( ( fabs( zimags(out[i])-resI[i] ) ) / (fabs(zimags(out[i])) ) ) <1e-15); + assert( ( ( fabs( zreals(out[i])-resR[i] ) ) / (fabs(zreals(out[i])) ) ) <3e-16); + assert( ( ( fabs( zimags(out[i])-resI[i] ) ) / (fabs(zimags(out[i])) ) ) <3e-16); } } |