<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, nonlinear identity / matching</title>
    <link>http://www.mapleprimes.com/questions/41105-Nonlinear-Identity--Matching</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Wed, 10 Jun 2026 20:58:30 GMT</lastBuildDate>
    <pubDate>Wed, 10 Jun 2026 20:58:30 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, nonlinear identity / matching</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, nonlinear identity / matching</title>
      <link>http://www.mapleprimes.com/questions/41105-Nonlinear-Identity--Matching</link>
    </image>
    <item>
      <title>nonlinear identity / matching</title>
      <link>http://www.mapleprimes.com/questions/41105-Nonlinear-Identity--Matching?ref=Feed:MaplePrimes:nonlinear identity / matching:Comments#answer76323</link>
      <itunes:summary>You could do this:

&lt;pre&gt;
&gt; match(op(2,K) = -op(1,K), x, 's');
  s;
&lt;/pre&gt;
          true
          {b = 1, c = 0, a = 0}</itunes:summary>
      <description>You could do this:

&lt;pre&gt;
&gt; match(op(2,K) = -op(1,K), x, 's');
  s;
&lt;/pre&gt;
          true
          {b = 1, c = 0, a = 0}</description>
      <guid>76323</guid>
      <pubDate>Mon, 16 Jul 2007 09:28:34 Z</pubDate>
      <itunes:author>Robert Israel</itunes:author>
      <author>Robert Israel</author>
    </item>
    <item>
      <title>now this</title>
      <link>http://www.mapleprimes.com/questions/41105-Nonlinear-Identity--Matching?ref=Feed:MaplePrimes:nonlinear identity / matching:Comments#answer76318</link>
      <itunes:summary>That works.

Any suggestion on this?  The S1 is generated in a program by solve(), I want integer solutions...There do exist integer solutions.

&lt;p &gt;&lt;strong &gt;&lt;font color="#ff0000" face="Monospaced"&gt;&gt; S1 := {kk[1] = -sqrt(2)*kk[4]-kk[5]*sqrt(2), kk[4] = kk[4], kk[5] = kk[5], kk[2] = -kk[5]*sqrt(2)+2*sqrt(2), kk[3] = 0};&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p &gt;&lt;center &gt;&lt;img src="http://maplenet.maplesoft.com/maplenet/primes/938422df7a33cf634af3e158478a060b.gif" alt='Maple Equation' align='absMiddle' /&gt;&lt;/center&gt;&lt;/p&gt;
&lt;p &gt;&lt;strong &gt;&lt;font color="#ff0000" face="Monospaced"&gt;&gt; isolve(S1);&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p &gt;&lt;center &gt;&lt;img src="http://maplenet.maplesoft.com/maplenet/primes/a830e676a5ed0ce8180595c65006717c.gif" alt='Maple Equation' align='absMiddle' /&gt;&lt;/center&gt;&lt;/p&gt;
&lt;p &gt;&lt;strong &gt;&lt;font color="#ff0000" face="Monospaced"&gt;&gt; subs({kk[1]=0,kk[2]=0,kk[3]=0,kk[4]=-2,kk[5]=2},S1);&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p &gt;&lt;center &gt;&lt;img src="http://maplenet.maplesoft.com/maplenet/primes/4a67e24ee50c5e7e1b779654ca4a5fce.gif" alt='Maple Equation' align='absMiddle' /&gt;&lt;/center&gt;&lt;/p&gt;
&lt;p &gt;&lt;strong &gt;&lt;font color="#ff0000" face="Monospaced"&gt;&gt; &lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This post was generated using the MaplePrimes &lt;a href="http://www.mapleprimes.com/filemanager"&gt;File Manager&lt;br&gt;&lt;/a&gt;&lt;br/&gt;&lt;a href='http://maplenet.maplesoft.com/maplenet/worksheet/mapleprimes/85_July17.mw'&gt;View 85_July17.mw on MapleNet&lt;/a&gt; or &lt;a href='http://www.mapleprimes.com/files/85_July17.mw'&gt;Download 85_July17.mw&lt;/a&gt;&lt;br/&gt;&lt;a href='http://www.mapleprimes.com/viewfile/1678'&gt;View file details&lt;/a&gt;&lt;/p&gt; 
</itunes:summary>
      <description>That works.

Any suggestion on this?  The S1 is generated in a program by solve(), I want integer solutions...There do exist integer solutions.

&lt;p &gt;&lt;strong &gt;&lt;font color="#ff0000" face="Monospaced"&gt;&gt; S1 := {kk[1] = -sqrt(2)*kk[4]-kk[5]*sqrt(2), kk[4] = kk[4], kk[5] = kk[5], kk[2] = -kk[5]*sqrt(2)+2*sqrt(2), kk[3] = 0};&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p &gt;&lt;center &gt;&lt;img src="http://maplenet.maplesoft.com/maplenet/primes/938422df7a33cf634af3e158478a060b.gif" alt='Maple Equation' align='absMiddle' /&gt;&lt;/center&gt;&lt;/p&gt;
&lt;p &gt;&lt;strong &gt;&lt;font color="#ff0000" face="Monospaced"&gt;&gt; isolve(S1);&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p &gt;&lt;center &gt;&lt;img src="http://maplenet.maplesoft.com/maplenet/primes/a830e676a5ed0ce8180595c65006717c.gif" alt='Maple Equation' align='absMiddle' /&gt;&lt;/center&gt;&lt;/p&gt;
&lt;p &gt;&lt;strong &gt;&lt;font color="#ff0000" face="Monospaced"&gt;&gt; subs({kk[1]=0,kk[2]=0,kk[3]=0,kk[4]=-2,kk[5]=2},S1);&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p &gt;&lt;center &gt;&lt;img src="http://maplenet.maplesoft.com/maplenet/primes/4a67e24ee50c5e7e1b779654ca4a5fce.gif" alt='Maple Equation' align='absMiddle' /&gt;&lt;/center&gt;&lt;/p&gt;
&lt;p &gt;&lt;strong &gt;&lt;font color="#ff0000" face="Monospaced"&gt;&gt; &lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This post was generated using the MaplePrimes &lt;a href="http://www.mapleprimes.com/filemanager"&gt;File Manager&lt;br&gt;&lt;/a&gt;&lt;br/&gt;&lt;a href='http://maplenet.maplesoft.com/maplenet/worksheet/mapleprimes/85_July17.mw'&gt;View 85_July17.mw on MapleNet&lt;/a&gt; or &lt;a href='http://www.mapleprimes.com/files/85_July17.mw'&gt;Download 85_July17.mw&lt;/a&gt;&lt;br/&gt;&lt;a href='http://www.mapleprimes.com/viewfile/1678'&gt;View file details&lt;/a&gt;&lt;/p&gt; 
</description>
      <guid>76318</guid>
      <pubDate>Tue, 17 Jul 2007 18:47:11 Z</pubDate>
      <itunes:author>edgar</itunes:author>
      <author>edgar</author>
    </item>
    <item>
      <title>integer solutions</title>
      <link>http://www.mapleprimes.com/questions/41105-Nonlinear-Identity--Matching?ref=Feed:MaplePrimes:nonlinear identity / matching:Comments#answer76316</link>
      <itunes:summary>Since your equations are linear and sqrt(2) is irrational, 
you can separate the terms that involve sqrt(2) and those that don't.  It seems isolve isn't clever enough to do this itself.

&lt;pre&gt;
&gt; split:= proc(eq) 
    local v;
    v:= lhs(eq)-rhs(eq);
    coeff(v,sqrt(2),1), coeff(v,sqrt(2),0);
  end proc:
  S2:= map(split, S1); 
&lt;/pre&gt;
&lt;maple&gt;S2 := {0, kk[3], kk[1], kk[2], kk[4]+kk[5], kk[5]-2}&lt;/maple&gt;
&lt;pre&gt;
&gt; isolve(S2);
&lt;/pre&gt;
&lt;maple&gt;
{kk[3] = 0, kk[1] = 0, kk[2] = 0, kk[4] = -2, kk[5] = 2}
&lt;/maple&gt;</itunes:summary>
      <description>Since your equations are linear and sqrt(2) is irrational, 
you can separate the terms that involve sqrt(2) and those that don't.  It seems isolve isn't clever enough to do this itself.

&lt;pre&gt;
&gt; split:= proc(eq) 
    local v;
    v:= lhs(eq)-rhs(eq);
    coeff(v,sqrt(2),1), coeff(v,sqrt(2),0);
  end proc:
  S2:= map(split, S1); 
&lt;/pre&gt;
&lt;maple&gt;S2 := {0, kk[3], kk[1], kk[2], kk[4]+kk[5], kk[5]-2}&lt;/maple&gt;
&lt;pre&gt;
&gt; isolve(S2);
&lt;/pre&gt;
&lt;maple&gt;
{kk[3] = 0, kk[1] = 0, kk[2] = 0, kk[4] = -2, kk[5] = 2}
&lt;/maple&gt;</description>
      <guid>76316</guid>
      <pubDate>Tue, 17 Jul 2007 21:08:37 Z</pubDate>
      <itunes:author>Robert Israel</itunes:author>
      <author>Robert Israel</author>
    </item>
    <item>
      <title>similar ... but</title>
      <link>http://www.mapleprimes.com/questions/41105-Nonlinear-Identity--Matching?ref=Feed:MaplePrimes:nonlinear identity / matching:Comments#comment85278</link>
      <itunes:summary>This will also work...

&lt;strong&gt;subs(sqrt(2)=z,S1);&lt;p&gt;
eliminate(%,z);&lt;/strong&gt;

But I want to put this inside a program, and I don't know in advance what irrationals will appear.  So now what?


</itunes:summary>
      <description>This will also work...

&lt;strong&gt;subs(sqrt(2)=z,S1);&lt;p&gt;
eliminate(%,z);&lt;/strong&gt;

But I want to put this inside a program, and I don't know in advance what irrationals will appear.  So now what?


</description>
      <guid>85278</guid>
      <pubDate>Tue, 17 Jul 2007 21:13:57 Z</pubDate>
      <itunes:author>edgar</itunes:author>
      <author>edgar</author>
    </item>
    <item>
      <title>convert, RootOf, subsindets, etc</title>
      <link>http://www.mapleprimes.com/questions/41105-Nonlinear-Identity--Matching?ref=Feed:MaplePrimes:nonlinear identity / matching:Comments#comment91661</link>
      <itunes:summary>Quick response now, I can turn this suggestion into code later, if someone else doesn't beat me to it.  Basically, you need to first make sure you convert your expression into something linear in a set of independent bases.  So if you will have a lot of irrationals, you need to convert to RootOf and normalize, to get rid of linear relations.  Then you can safely replace every RootOf that's left with a fresh symbol (I would use subsindets for the latter task).</itunes:summary>
      <description>Quick response now, I can turn this suggestion into code later, if someone else doesn't beat me to it.  Basically, you need to first make sure you convert your expression into something linear in a set of independent bases.  So if you will have a lot of irrationals, you need to convert to RootOf and normalize, to get rid of linear relations.  Then you can safely replace every RootOf that's left with a fresh symbol (I would use subsindets for the latter task).</description>
      <guid>91661</guid>
      <pubDate>Tue, 17 Jul 2007 23:16:15 Z</pubDate>
      <itunes:author>JacquesC</itunes:author>
      <author>JacquesC</author>
    </item>
  </channel>
</rss>