MathGroup Archive 2007

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

Search the Archive

Re: Polynomial to List

  • To: mathgroup at smc.vnet.net
  • Subject: [mg76938] Re: [mg76897] Polynomial to List
  • From: DrMajorBob <drmajorbob at bigfoot.com>
  • Date: Wed, 30 May 2007 05:25:19 -0400 (EDT)
  • References: <961626.1180430873606.JavaMail.root@m35>
  • Reply-to: drmajorbob at bigfoot.com

1 + x + x^2 + x^3 + x^4 /. Plus -> List
Reverse@%

{1, x, x^2, x^3, x^4}

{x^4, x^3, x^2, x, 1}

or

Reverse@(List @@ (1 + x + x^2 + x^3 + x^4))

{x^4, x^3, x^2, x, 1}

Bobby

On Tue, 29 May 2007 04:07:44 -0500, Nick Hoffman <hoffmannick at gmail.com>  
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!
>
>
>



-- 
DrMajorBob at bigfoot.com


  • Prev by Date: Re: Iterate through a list
  • Next by Date: Tracking point on a plot (follow-up)
  • Previous by thread: Re: Polynomial to List
  • Next by thread: Re: Polynomial to List