MathGroup Archive 2004

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

Search the Archive

Re: FactorTerms

  • To: mathgroup at smc.vnet.net
  • Subject: [mg46074] Re: FactorTerms
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Thu, 5 Feb 2004 04:02:53 -0500 (EST)
  • Organization: Universitaet Leipzig
  • References: <bvpobu$2ap$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

FactorTerms[PA] /. a_Integer*b_?(PolynomialQ[#, z] &) :> {a, b}

Regards
  Jens

Carlos Felippa wrote:
> 
> 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: FactorTerms
  • Next by Date: how to test if 2 expressions are the same? Mathematica 5.0
  • Previous by thread: Re: FactorTerms
  • Next by thread: simplifying first-order diff eq solution