Re: extracting powers and coefficients from a polynomial
- To: mathgroup at smc.vnet.net
- Subject: [mg49067] Re: extracting powers and coefficients from a polynomial
- From: Tomas Hajek <tomas.hajek at st.com>
- Date: Wed, 30 Jun 2004 05:34:14 -0400 (EDT)
- References: <cbrcau$iqc$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Try CoefficientList[] function and then process its result
AngleWyrm wrote:
> I have made a formula that produces a polynomial expansion, and I wish to
> extract the powers and coefficients into a list.
>
> Expand[(Sum[x^i, {i, 6}])^3]
> 1x^3 + 3x^4 + 6x^5 + 10x^6 + 15x^7 + 21x^8 + 25x^9 + 27x^10 + 27x^11 + 25x^12
> + 21x^13 + 15x^14 + 10x^15 + 6x^16 + 3x^17 + 1x^18
>
> How do I make a table of the powers and coefficents?
> 3, 1
> 4, 3
> 5, 6
> 6, 10
> .....
>
--
__ ___
Tomas Hajek -_ /
Software engineer __- /
Bagavel, s.r.o.
STMicroelectronics E-mail: tomas.hajek at st.com
Pobrezni 3 Work : +42 02 2233 6129
186 00 Praha 8 Tina : 139 6129
Fax : +42 02 2233 6116
_____________________________________________________________________