* of special functions or implement the interface to the bignum package. */
/*
- * GiNaC Copyright (C) 1999-2004 Johannes Gutenberg University Mainz, Germany
+ * GiNaC Copyright (C) 1999-2005 Johannes Gutenberg University Mainz, Germany
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
}
}
- // should really be gamma(n+1)/gamma(r+1)/gamma(n-r+1) or a suitable limit
- throw std::range_error("numeric::binomial(): donยดt know how to evaluate that.");
+ // should really be gamma(n+1)/gamma(k+1)/gamma(n-k+1) or a suitable limit
+ throw std::range_error("numeric::binomial(): don't know how to evaluate that.");
}
/** Modulus (in symmetric representation).
* Equivalent to Maple's mods.
*
- * @return a mod b in the range [-iquo(abs(m)-1,2), iquo(abs(m),2)]. */
+ * @return a mod b in the range [-iquo(abs(b)-1,2), iquo(abs(b),2)]. */
const numeric smod(const numeric &a, const numeric &b)
{
if (a.is_integer() && b.is_integer()) {