MathGroup Archive 2004

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

Search the Archive

RE: FactorTerms

  • To: mathgroup at smc.vnet.net
  • Subject: [mg46063] RE: [mg46053] FactorTerms
  • From: "David Park" <djmp at earthlink.net>
  • Date: Wed, 4 Feb 2004 02:29:32 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Carlos,

Do you mean that you want a list of the two parts?

PA = 16*a0 + 16*a1*z + 16*a2*z^2 + 16*a3*z^3 + 16*a4*z^4;
PAfactored = FactorTerms[PA];
List @@ PAfactored

or any of these others...

Table[Part[PAfactored, i], {i, 1, 2}]

{First[#], Rest[#]} &[PAfactored]

Array[Part[PAfactored, #] &, 2]

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/ 

From: Carlos Felippa [mailto:carlos at colorado.edu]
To: mathgroup at smc.vnet.net

Suppose I have the polynomial

PA=16*a0 + 16*a1*z + 16*a2*z^2 + 16*a3*z^3 + 16*a4*z^4;

FactorTerms[PA]

produces

16*(a0 + a1*z + a2*z^2 + a3*z^3 + a4*z^4)

How do I extract the 16 and the (...)?



  • Prev by Date: Re: help for time series basic operations
  • Next by Date: simplifying first-order diff eq solution
  • Previous by thread: Re: FactorTerms
  • Next by thread: Re: FactorTerms