Re: Polynomial as a List
- To: mathgroup at smc.vnet.net
- Subject: [mg77336] Re: Polynomial as a List
- From: "Dr. Wolfgang Hintze" <weh at snafu.de>
- Date: Thu, 7 Jun 2007 03:40:30 -0400 (EDT)
- References: <f43ghr$2db$1@smc.vnet.net>
- Reply-to: "Dr. Wolfgang Hintze" <weh at snafu.de>
"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