summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension/polynomial.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-10-29 00:40:12 -0400
committerTavian Barnes <tavianator@gmail.com>2010-10-29 00:40:12 -0400
commit54f9b5e58befe75c22976cc48c381679a5127251 (patch)
tree2620d66f824b7dd7adfd533f43dcd96abdc34b61 /libdimension/dimension/polynomial.h
parent424161aeacff98d8b0bbe0abca7480d63be6863a (diff)
downloaddimension-54f9b5e58befe75c22976cc48c381679a5127251.tar.xz
Only return non-zero roots of polynomials.
Diffstat (limited to 'libdimension/dimension/polynomial.h')
-rw-r--r--libdimension/dimension/polynomial.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdimension/dimension/polynomial.h b/libdimension/dimension/polynomial.h
index 52a44dd..f7d4517 100644
--- a/libdimension/dimension/polynomial.h
+++ b/libdimension/dimension/polynomial.h
@@ -41,8 +41,8 @@ dmnsn_evaluate_polynomial(double poly[], size_t degree, double x)
return ret;
}
-/* Stores the non-negative roots of poly[] in x[], and returns the number of
- such roots that were stored */
+/* Stores the positive roots of poly[] in x[], and returns the number of such
+ roots that were stored */
size_t dmnsn_solve_polynomial(double poly[], size_t degree, double x[]);
/* Helper function to print a polynomial */