diff options
author | simon | 2009-09-08 09:59:01 +0000 |
---|---|---|
committer | simon | 2009-09-08 09:59:01 +0000 |
commit | 9ee831e6fa02e1150a08bf31f31cf291551f078d (patch) | |
tree | 6b3386ab2b45f145435c1c14fb2850929a8e0153 /src/c/statisticsFunctions/prod | |
parent | 5b039b5b51970dd1fe3f961f80a27b1fdbea1569 (diff) | |
download | scilab2c-9ee831e6fa02e1150a08bf31f31cf291551f078d.tar.gz scilab2c-9ee831e6fa02e1150a08bf31f31cf291551f078d.tar.bz2 scilab2c-9ee831e6fa02e1150a08bf31f31cf291551f078d.zip |
automated tests
Diffstat (limited to 'src/c/statisticsFunctions/prod')
-rw-r--r-- | src/c/statisticsFunctions/prod/Makefile.am | 1 | ||||
-rw-r--r-- | src/c/statisticsFunctions/prod/Makefile.in | 2 | ||||
-rw-r--r-- | src/c/statisticsFunctions/prod/testDoubleProd.c | 2 |
3 files changed, 4 insertions, 1 deletions
diff --git a/src/c/statisticsFunctions/prod/Makefile.am b/src/c/statisticsFunctions/prod/Makefile.am index 5aac8129..4c217f57 100644 --- a/src/c/statisticsFunctions/prod/Makefile.am +++ b/src/c/statisticsFunctions/prod/Makefile.am @@ -45,6 +45,7 @@ check_INCLUDES = -I $(top_builddir)/src/c/statisticsFunctions/includes \ check_LDADD = $(top_builddir)/src/c/type/libDoubleComplex.la \ $(top_builddir)/src/c/type/libFloatComplex.la \ + $(top_builddir)/src/c/operations/addition/libAddition.la \ $(top_builddir)/src/c/operations/multiplication/libMultiplication.la \ $(top_builddir)/src/c/statisticsFunctions/prod/libProd.la \ @LIBMATH@ diff --git a/src/c/statisticsFunctions/prod/Makefile.in b/src/c/statisticsFunctions/prod/Makefile.in index c3d3904c..fc402d5e 100644 --- a/src/c/statisticsFunctions/prod/Makefile.in +++ b/src/c/statisticsFunctions/prod/Makefile.in @@ -69,6 +69,7 @@ am_testDoubleProd_OBJECTS = testDoubleProd-testDoubleProd.$(OBJEXT) testDoubleProd_OBJECTS = $(am_testDoubleProd_OBJECTS) am__DEPENDENCIES_1 = $(top_builddir)/src/c/type/libDoubleComplex.la \ $(top_builddir)/src/c/type/libFloatComplex.la \ + $(top_builddir)/src/c/operations/addition/libAddition.la \ $(top_builddir)/src/c/operations/multiplication/libMultiplication.la \ $(top_builddir)/src/c/statisticsFunctions/prod/libProd.la testDoubleProd_DEPENDENCIES = $(am__DEPENDENCIES_1) @@ -251,6 +252,7 @@ check_INCLUDES = -I $(top_builddir)/src/c/statisticsFunctions/includes \ check_LDADD = $(top_builddir)/src/c/type/libDoubleComplex.la \ $(top_builddir)/src/c/type/libFloatComplex.la \ + $(top_builddir)/src/c/operations/addition/libAddition.la \ $(top_builddir)/src/c/operations/multiplication/libMultiplication.la \ $(top_builddir)/src/c/statisticsFunctions/prod/libProd.la \ @LIBMATH@ diff --git a/src/c/statisticsFunctions/prod/testDoubleProd.c b/src/c/statisticsFunctions/prod/testDoubleProd.c index b18ca148..6b5972a6 100644 --- a/src/c/statisticsFunctions/prod/testDoubleProd.c +++ b/src/c/statisticsFunctions/prod/testDoubleProd.c @@ -41,7 +41,7 @@ static int dprodaTest(void) { printf("\n>>>> prod Double Array Test\n"); printf("%f\n", dproda(table1, 3)); assert(dproda(table1, 3) == 27.0); - assert((dproda(table2, 5) - (9.186784 * 9.186784 * 9.186784 * 9.186784 * 9.186784)) / dproda(table2, 5) < 3e-16); + assert((dproda(table2, 5) - (9.186784563 * 9.186784563 * 9.186784563 * 9.186784563 * 9.186784563)) / dproda(table2, 5) < 3e-15); return 0; } |