On Fri, Apr 2, 2010 at 10:46 AM, Charles R Harris <charlesr.har...@gmail.com > wrote:
> On Fri, Apr 2, 2010 at 11:27 AM, David Goldsmith > <d.l.goldsm...@gmail.com>wrote: > >> Also: >> >> >>> c.deriv(0) >> Chebyshev([ 1.], [-1., 1.]) >> >>> c.integ(0) >> >> Traceback (most recent call last): >> File "<stdin>", line 1, in <module> >> File "<string>", line 441, in integ >> File "C:\Python26\lib\site-packages\numpy\polynomial\chebyshev.py", line >> 729, >> in chebint >> raise ValueError, "The order of integration must be positive" >> ValueError: The order of integration must be positive >> >> i.e., deriv supports zero-order differentiation, but integ doesn't support >> zero-order integration (though I acknowledge that this may be a feature, not >> a bug). > > > It was inherited. I have no qualms about letting it integrate zero times if > folks think it should go that way. I think the reason derivatives allowed 0 > for the number of derivations was for classroom instruction. > Again, my only concern is API consistency, yada, yada, yada. DG
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion