Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #4565

Better use of PolynomialReduce?

From Irretrev Unable <irdeva_ble@yahoo.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Better use of PolynomialReduce?
Date 2011-08-25 11:11 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j35al3$og1$1@smc.vnet.net> (permalink)

Show all headers | View raw



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

Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Better use of PolynomialReduce? Irretrev Unable <irdeva_ble@yahoo.com> - 2011-08-25 11:11 +0000
  Re: Better use of PolynomialReduce? Peter Pein <petsie@dordos.net> - 2011-08-26 09:22 +0000

csiph-web