diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-10-29 00:40:12 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-10-29 00:40:12 -0400 |
commit | 54f9b5e58befe75c22976cc48c381679a5127251 (patch) | |
tree | 2620d66f824b7dd7adfd533f43dcd96abdc34b61 /libdimension/dimension | |
parent | 424161aeacff98d8b0bbe0abca7480d63be6863a (diff) | |
download | dimension-54f9b5e58befe75c22976cc48c381679a5127251.tar.xz |
Only return non-zero roots of polynomials.
Diffstat (limited to 'libdimension/dimension')
-rw-r--r-- | libdimension/dimension/polynomial.h | 4 |
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 */ |