<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, Collecting coefficient of perturbation equations</title>
    <link>http://www.mapleprimes.com/questions/129616-Collecting-Coefficient-Of-Perturbation-Equations</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Thu, 18 Jun 2026 21:02:08 GMT</lastBuildDate>
    <pubDate>Thu, 18 Jun 2026 21:02:08 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, Collecting coefficient of perturbation equations</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, Collecting coefficient of perturbation equations</title>
      <link>http://www.mapleprimes.com/questions/129616-Collecting-Coefficient-Of-Perturbation-Equations</link>
    </image>
    <item>
      <title>partial answer</title>
      <link>http://www.mapleprimes.com/questions/129616-Collecting-Coefficient-Of-Perturbation-Equations?ref=Feed:MaplePrimes:Collecting coefficient of perturbation equations:Comments#answer129625</link>
      <itunes:summary>&lt;p&gt;Rather than starting a new thread it is generally better to continue the old.&amp;nbsp; Regardless, a few comments.&lt;/p&gt;
&lt;p&gt;My suggestion to use &lt;a href='http://www.maplesoft.com/support/help/search.aspx?term=add' target='_new'&gt;?add&lt;/a&gt; instead of &lt;a href='http://www.maplesoft.com/support/help/search.aspx?term=sum' target='_new'&gt;?sum&lt;/a&gt; was incomplete.&amp;nbsp; The forward quotes which you used are not needed and not appropriate when using add.&amp;nbsp; A more serious problem is that you are using the name of the procedure (f), in the procedure.&amp;nbsp; While Maple can recurse, the recursion must eventually halt, and there is nothing in the procedure that does that.&amp;nbsp; The real problem is that you want f[1] to be a different procedure than f.&amp;nbsp; Alas, Maple treats them as the same.&amp;nbsp; For example&lt;/p&gt;
&lt;pre&gt;f := x -&amp;gt; f[1](x):&lt;br&gt;f(3);&lt;br&gt;Error, (in f[1]) too many levels in recursion&lt;/pre&gt;
&lt;p&gt;It isn't clear why you are calling f[1](x).&amp;nbsp; Is that supposed to be a completely inert call.&amp;nbsp; In that case, you would be better naming it as f1. That is, you could do&lt;/p&gt;
&lt;pre&gt;N := 2:&lt;br&gt;f := eta -&amp;gt; add(cat('f',i)(eta)*m^i, i=0..N):&lt;br&gt;f(3);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f0(3) + f1(3) m + f2(3) m&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/pre&gt;</itunes:summary>
      <description>&lt;p&gt;Rather than starting a new thread it is generally better to continue the old.&amp;nbsp; Regardless, a few comments.&lt;/p&gt;
&lt;p&gt;My suggestion to use &lt;a href='http://www.maplesoft.com/support/help/search.aspx?term=add' target='_new'&gt;?add&lt;/a&gt; instead of &lt;a href='http://www.maplesoft.com/support/help/search.aspx?term=sum' target='_new'&gt;?sum&lt;/a&gt; was incomplete.&amp;nbsp; The forward quotes which you used are not needed and not appropriate when using add.&amp;nbsp; A more serious problem is that you are using the name of the procedure (f), in the procedure.&amp;nbsp; While Maple can recurse, the recursion must eventually halt, and there is nothing in the procedure that does that.&amp;nbsp; The real problem is that you want f[1] to be a different procedure than f.&amp;nbsp; Alas, Maple treats them as the same.&amp;nbsp; For example&lt;/p&gt;
&lt;pre&gt;f := x -&amp;gt; f[1](x):&lt;br&gt;f(3);&lt;br&gt;Error, (in f[1]) too many levels in recursion&lt;/pre&gt;
&lt;p&gt;It isn't clear why you are calling f[1](x).&amp;nbsp; Is that supposed to be a completely inert call.&amp;nbsp; In that case, you would be better naming it as f1. That is, you could do&lt;/p&gt;
&lt;pre&gt;N := 2:&lt;br&gt;f := eta -&amp;gt; add(cat('f',i)(eta)*m^i, i=0..N):&lt;br&gt;f(3);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f0(3) + f1(3) m + f2(3) m&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/pre&gt;</description>
      <guid>129625</guid>
      <pubDate>Sat, 14 Jan 2012 02:06:49 Z</pubDate>
      <itunes:author>Joe Riel</itunes:author>
      <author>Joe Riel</author>
    </item>
  </channel>
</rss>