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


Groups > comp.soft-sys.math.mathematica > #4575 > unrolled thread

Re: Better use of PolynomialReduce?

Started byDaniel Lichtblau <danl@wolfram.com>
First post2011-08-26 09:24 +0000
Last post2011-08-26 09:24 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Better use of PolynomialReduce? Daniel Lichtblau <danl@wolfram.com> - 2011-08-26 09:24 +0000

#4575 — Re: Better use of PolynomialReduce?

FromDaniel Lichtblau <danl@wolfram.com>
Date2011-08-26 09:24 +0000
SubjectRe: Better use of PolynomialReduce?
Message-ID<j37oos$4ep$1@smc.vnet.net>
On 08/25/2011 06:06 AM, Irretrev Unable wrote:
> 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

First create a Groebner basis from your reducing set.

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

In[9]:= scPhiDecomp[y (a x^2 + 2 c x y - a y^2)]
Out[9]= {{-a, a x + 2 c y, 0}, 0}

If you really need to see it reduced to zero in terms of your original 
set {x^2 - y^2, 2 x y}, that can be done. Will take a bit of work 
though. Requires a conversion matrix to take you from the original set 
to the Groebner basis. See:

http://groups.google.com/group/comp.soft-sys.math.mathematica/browse_thread/thread/364ef1e62ad099d6#


Daniel lichtblau
Wolfram Research


[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web