[Numpy-discussion] poly1d with complex coefficients doesn't integrate
Mark Bakker
markbak@gmail....
Mon Oct 27 15:07:38 CDT 2008
I seem to be able to create a poly1d instance with complex coefficients, and
it works correctly. But I cannot integrate it. Does poly1d not support
complex coefficients? Any reason why not, that shouldn't be too difficult,
should it?
Thanks, Mark
>>> p = poly1d([1+1j,2+2j])
>>> p(2)
(4+4j)
>>> q=p.integ()
>>> print q # This is obviously the wrong answer
2
0.5 x + 2 x
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20081027/112d3e47/attachment.html
More information about the Numpy-discussion
mailing list