summaryrefslogtreecommitdiffstats
path: root/libdimension/tests/polynomial.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/tests/polynomial.c')
-rw-r--r--libdimension/tests/polynomial.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libdimension/tests/polynomial.c b/libdimension/tests/polynomial.c
index 5632b49..d66c975 100644
--- a/libdimension/tests/polynomial.c
+++ b/libdimension/tests/polynomial.c
@@ -40,7 +40,7 @@ main(void)
poly[1] = -646.270936;
poly[0] = 1447.8216;
- size_t n = dmnsn_solve_polynomial(poly, 5, x);
+ size_t n = dmnsn_polynomial_solve(poly, 5, x);
if (n != 4) {
fprintf(stderr,
"--- Wrong number of roots found (%zu, should be %u) ---\n",
@@ -49,9 +49,9 @@ main(void)
}
for (size_t i = 0; i < n; ++i) {
- double evmin = dmnsn_evaluate_polynomial(poly, 5, x[i] - dmnsn_epsilon);
- double ev = dmnsn_evaluate_polynomial(poly, 5, x[i]);
- double evmax = dmnsn_evaluate_polynomial(poly, 5, x[i] + dmnsn_epsilon);
+ double evmin = dmnsn_polynomial_evaluate(poly, 5, x[i] - dmnsn_epsilon);
+ double ev = dmnsn_polynomial_evaluate(poly, 5, x[i]);
+ double evmax = dmnsn_polynomial_evaluate(poly, 5, x[i] + dmnsn_epsilon);
if (fabs(evmin) < ev || fabs(evmax) < ev) {
fprintf(stderr, "--- Root %.15g is inaccurate! ---\n", x[i]);
return EXIT_FAILURE;