MathGroup Archive 2007

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

Search the Archive

Re: Polynomial to List

  • To: mathgroup at smc.vnet.net
  • Subject: [mg76917] Re: [mg76897] Polynomial to List
  • From: Chris Scullard <scullard at uchicago.edu>
  • Date: Wed, 30 May 2007 05:14:24 -0400 (EDT)
  • References: <200705290907.FAA04110@smc.vnet.net>

Hi Nick,

In[1]:=
p=1+x+x^2+x^3+x^4

Out[1]=
1 + x + x^2 + x^3 + x^4

In[2]:=
t=Table[p[[i]],{i,1,Length[p]}]

Out[2]=
{1, x, x^2, x^3, x^4}

You can use Reverse[] if you want the list in the opposite order.

Regards,
Chris

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!
>
>   


  • Prev by Date: Re: TableForm vs. Grid (v.6)
  • Next by Date: The Requested Evaluator ...
  • Previous by thread: Re: Polynomial to List
  • Next by thread: Re: Polynomial to List