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


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

Re: Better use of PolynomialReduce?

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!nx02.iad01.newshosting.com!newshosting.com!novia!newsfeeds.sol.net!post2.nntp.sol.net!posts.news.twtelecom.net!nnrp2.twtelecom.net!not-for-mail
From Daniel Lichtblau <danl@wolfram.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Better use of PolynomialReduce?
Date Fri, 26 Aug 2011 09:24:44 +0000 (UTC)
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Sender steve@smc.vnet.net
Approved Steven M. Christensen <steve@smc.vnet.net>, Moderator
Message-ID <j37oos$4ep$1@smc.vnet.net> (permalink)
References <201108251106.HAA24956@smc.vnet.net>
Lines 45
NNTP-Posting-Date 26 Aug 2011 08:27:18 GMT
NNTP-Posting-Host 6553c265.news.twtelecom.net
X-Trace DXC=`8GHZJ[575YXl]7<OF\B7WC_A=>8kQj6]m^eQlV`f18W:Xj>;_IblDPEFiONJ7[GoVQF4_cVmdM8R
X-Complaints-To abuse@twtelecom.net
Xref x330-a1.tempe.blueboxinc.net comp.soft-sys.math.mathematica:4575

Show key headers only | View raw


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


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


Thread

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

csiph-web