[SciPy-user] question about scipy.polynomial.poly1d

Michael Blazej michael.blazej at gmail.com
Fri Dec 16 15:28:04 CST 2005


No, sorry, that is not what I'm asking.  Okay instead of the output of
print poly1d([1,2,3])
x^2+2x+3

is there a way to change the variable to something arbitrary like
y^2+2y+3


On 12/16/05, Alan G Isaac <aisaac at american.edu> wrote:
>
> On Fri, 16 Dec 2005, Michael Blazej apparently wrote:
> > Is there a way to get different variables into poly1d such
> > as 'y' or 'lamda'.
>
> I think I don't understand your question.
> I assume you are not just asking whether one can do this:
>
>    >>> y=(3,1,2)
>    >>> p=scipy.poly1d(y)
>    >>> p
>    poly1d([3, 1, 2])
>
> I strongly recommend the SciPy book:
> http://www.scipy.org/documentation/
>
> hth,
> Alan Isaac
>
>
>
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.scipy.net/pipermail/scipy-user/attachments/20051216/e0429ab8/attachment.htm


More information about the SciPy-user mailing list