Re: Polynomial to List
- To: mathgroup at smc.vnet.net
- Subject: [mg76979] Re: Polynomial to List
- From: dimitris <dimmechan at yahoo.com>
- Date: Thu, 31 May 2007 03:20:56 -0400 (EDT)
- References: <200705290907.FAA04110@smc.vnet.net><f3jgog$d9h$1@smc.vnet.net>
Hello Janos.
Is it a particular reason (from progarmming aspects)
that in various answers of you regarding if the query is about
something
trivial (as in the current thread) or not you seem
to have sticked to Table structures?
Dimitris
/ J=E1nos :
> On May 29, 2007, at 5:07 AM, Nick Hoffman wrote:
>
> > I have a polynomial,
> > Lets say:
> >
> > 1 + x + x^2 + x^3 + x^4
> >
> >
> > and all I need to do is get that into a list of this form
> >
> > {x^4, x^3, x^2, x, 1}
> >
> > Any help would be greatly appreciated! Thanks!
> >
>
> Here is a newbie approach:
>
> In[4]:=
> Reverse[Table[(1 + x + x^2 +
> x^3 + x^4)[[i]],
> {i, 1, Length[1 + x +
> x^2 + x^3 + x^4]}]]
> Out[4]=
> {x^4, x^3, x^2, x, 1}
>
> J=E1nos
>
>
> ----------------------------------------------
> Trying to argue with a politician is like lifting up the head of a
> corpse.
> (S. Lem: His Master Voice)
- References:
- Polynomial to List
- From: "Nick Hoffman" <hoffmannick@gmail.com>
- Polynomial to List