MathGroup Archive 2007

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

Search the Archive

Re: Polynomial to List

  • To: mathgroup at smc.vnet.net
  • Subject: [mg76944] Re: Polynomial to List
  • From: David Bailey <dave at Remove_Thisdbailey.co.uk>
  • Date: Wed, 30 May 2007 05:28:25 -0400 (EDT)
  • References: <f3grip$49r$1@smc.vnet.net>

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!
> 
> 
Assuming you KNOW that you have a sum of terms:

poly=1 + x + x^2 + x^3 + x^4


Reverse[List @@ poly]

David Bailey
http://www.dbaileyconsultancy.co.uk


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