Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Polynomial to List

  • To: mathgroup at smc.vnet.net
  • Subject: [mg76930] Re: [mg76897] Polynomial to List
  • From: János <janos.lobb at yale.edu>
  • Date: Wed, 30 May 2007 05:21:10 -0400 (EDT)
  • References: <200705290907.FAA04110@smc.vnet.net>

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)



  • Prev by Date: Re: $10K Mathematica Machine
  • Next by Date: Tracking point on a plot
  • Previous by thread: Re: Polynomial to List
  • Next by thread: RE: Polynomial to List