MathGroup Archive 2011

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

Search the Archive

Better use of PolynomialReduce?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg121058] Better use of PolynomialReduce?
  • From: Irretrev Unable <irdeva_ble at yahoo.com>
  • Date: Thu, 25 Aug 2011 07:06:25 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Reply-to: Irretrev Unable <irdeva_ble at yahoo.com>


I've been using 


scPhiDecomp[expr_]:= PolynomialReduce[expr, {x^2-y^2,2 x y}, {x,y}]

which works great on

scPhiDecomp[a x^2 + 2c x y -a y^2]
>> {{a,c},0}

but doesn't do what I want on

scPhiDecomp[y (a x^2 + 2c x y -a y^2)]
>> {{0,(a x)/2+c y},-a y^3}

How do I make scPhiDecomp produce
{{a y, c y}, 0}
on the second expression?

Thanks,
Keith




  • Prev by Date: need a quicker method for SquaresR func
  • Next by Date: Re: Nested List Abs[]
  • Previous by thread: need a quicker method for SquaresR func
  • Next by thread: Re: Better use of PolynomialReduce?