diff options
Diffstat (limited to 'src/statisticsFunctions/sum/testDoubleSum.c')
-rw-r--r-- | src/statisticsFunctions/sum/testDoubleSum.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/statisticsFunctions/sum/testDoubleSum.c b/src/statisticsFunctions/sum/testDoubleSum.c index d8a57fe6..e00ec0ec 100644 --- a/src/statisticsFunctions/sum/testDoubleSum.c +++ b/src/statisticsFunctions/sum/testDoubleSum.c @@ -40,7 +40,7 @@ static int dsumaTest(void) { printf("\n>>>> Sum Double Array Test\n"); assert(dsuma(table1, 3) == 9.0); - assert((dsuma(table2, 5) - (9.186784 + 9.186784 + 9.186784 + 9.186784 + 9.186784)) / dsuma(table2, 5) < 1e-6); + assert((dsuma(table2, 5) - (9.186784 + 9.186784 + 9.186784 + 9.186784 + 9.186784)) / dsuma(table2, 5) < 3e-16); return 0; } |