MathGroup Archive 2007

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

Search the Archive

Re: Polynomial as a List


"Nick" <hoffmannick at gmail.com> schrieb im Newsbeitrag 
news:f43ghr$2db$1 at smc.vnet.net...
>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}
>
>
> Can anyone help me figure this out?
>
> Thanks so much!
>
>
Nick, just tell mathematica literally what you want:
"Make me a list from (1+x+...)"

Here you go

List @@ (1 + x + x^2 + x^3 + x^4)
{1, x, x^2, x^3, x^4}

Technically speaking you're replacing the head Plus by the head List.

Regards,
Wolfgang 



  • Prev by Date: PolyLogs
  • Next by Date: display change in version 6
  • Previous by thread: Re: Polynomial as a List
  • Next by thread: Anyone used the Notation package in v6 already?