From 54f9b5e58befe75c22976cc48c381679a5127251 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 29 Oct 2010 00:40:12 -0400 Subject: Only return non-zero roots of polynomials. --- libdimension/dimension/polynomial.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libdimension/dimension') 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 */ -- cgit v1.2.3