diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-10-30 16:02:18 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-10-30 16:02:18 -0400 |
commit | 70ddf1e89aca531b5a2b4d71d2873c6883a61953 (patch) | |
tree | 612bdb9abe1bd4379de6612b10ff44078aa95a30 /libdimension/dimension | |
parent | 4da9797574ec9691f4033a33d9c89ff68f169624 (diff) | |
download | dimension-70ddf1e89aca531b5a2b4d71d2873c6883a61953.tar.xz |
Be const-correct in polynomial.{c,h}.
Diffstat (limited to 'libdimension/dimension')
-rw-r--r-- | libdimension/dimension/polynomial.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libdimension/dimension/polynomial.h b/libdimension/dimension/polynomial.h index f7d4517..e04861f 100644 --- a/libdimension/dimension/polynomial.h +++ b/libdimension/dimension/polynomial.h @@ -31,7 +31,7 @@ #include <stdio.h> DMNSN_INLINE double -dmnsn_evaluate_polynomial(double poly[], size_t degree, double x) +dmnsn_evaluate_polynomial(const double poly[], size_t degree, double x) { double ret = poly[degree]; ssize_t i; @@ -43,9 +43,9 @@ dmnsn_evaluate_polynomial(double poly[], size_t degree, double x) /* 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[]); +size_t dmnsn_solve_polynomial(const double poly[], size_t degree, double x[]); /* Helper function to print a polynomial */ -void dmnsn_print_polynomial(FILE *file, double poly[], size_t degree); +void dmnsn_print_polynomial(FILE *file, const double poly[], size_t degree); #endif /* DIMENSION_POLYNOMIAL_H */ |