<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, Error, (in simplify/tools/_zn) too many levels of recursion</title>
    <link>http://www.mapleprimes.com/questions/94483-Error-in-Simplifytoolszn-Too-Many</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Thu, 11 Jun 2026 19:22:31 GMT</lastBuildDate>
    <pubDate>Thu, 11 Jun 2026 19:22:31 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, Error, (in simplify/tools/_zn) too many levels of recursion</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, Error, (in simplify/tools/_zn) too many levels of recursion</title>
      <link>http://www.mapleprimes.com/questions/94483-Error-in-Simplifytoolszn-Too-Many</link>
    </image>
    <item>
      <title>Works in Maple 12-14</title>
      <link>http://www.mapleprimes.com/questions/94483-Error-in-Simplifytoolszn-Too-Many?ref=Feed:MaplePrimes:Error, (in simplify/tools/_zn) too many levels of recursion:Comments#answer94484</link>
      <itunes:summary>&lt;p&gt;Except for one extra parenthesis (which just created a syntax error) Maple 12, 13, and 14 computed the integral without problem:&lt;/p&gt;
&lt;p&gt;restart;&lt;br&gt;with(VectorCalculus):&lt;br&gt;X := r -&amp;gt; sqrt(2/Pi)*alpha*exp(-alpha^2*(r.r)):&lt;br&gt;a_0:=a* &amp;lt;1/2*sqrt(3) , 1/2&amp;gt;:&lt;br&gt;r:=&amp;lt;x,y&amp;gt;:&lt;br&gt;assume(alpha&amp;gt;0);&lt;br&gt;about(alpha);&lt;br&gt;eq1:=int( X(r-a_0) , x=-infinity .. infinity);&lt;/p&gt;
&lt;p&gt;The last assumption on a variable overwrites one made previously. If you want to make additional assumptions on a variable then use 'additionally'.&lt;/p&gt;
&lt;p&gt;However, if you assume that alpha is positive, then you are assuming that it is in the real range from 0 to infinity (see the output from 'about(alpha)' ), so there is no need for an additional assumption about alpha being real.&lt;/p&gt;
&lt;p&gt;Without the VectorCalculus package you need to be aware that the inner product by default works in the complex domain:&lt;/p&gt;
&lt;p&gt;restart;&lt;br&gt;X := r -&amp;gt; sqrt(2/Pi)*alpha*exp(-alpha^2*(r.r)):&lt;br&gt;a_0:=a* &amp;lt;1/2*sqrt(3) , 1/2&amp;gt;:&lt;br&gt;r:=&amp;lt;x,y&amp;gt;:&lt;br&gt;r.r;&lt;br&gt;eq1:=int( X(r-a_0) , x=-infinity .. infinity):&lt;br&gt;simplify(eq1) assuming real;&lt;br&gt;#The following syntax can be used in Maple 14:&lt;br&gt;simplify(eq1) assuming real,alpha&amp;gt;0;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Preben Alsholm&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Except for one extra parenthesis (which just created a syntax error) Maple 12, 13, and 14 computed the integral without problem:&lt;/p&gt;
&lt;p&gt;restart;&lt;br&gt;with(VectorCalculus):&lt;br&gt;X := r -&amp;gt; sqrt(2/Pi)*alpha*exp(-alpha^2*(r.r)):&lt;br&gt;a_0:=a* &amp;lt;1/2*sqrt(3) , 1/2&amp;gt;:&lt;br&gt;r:=&amp;lt;x,y&amp;gt;:&lt;br&gt;assume(alpha&amp;gt;0);&lt;br&gt;about(alpha);&lt;br&gt;eq1:=int( X(r-a_0) , x=-infinity .. infinity);&lt;/p&gt;
&lt;p&gt;The last assumption on a variable overwrites one made previously. If you want to make additional assumptions on a variable then use 'additionally'.&lt;/p&gt;
&lt;p&gt;However, if you assume that alpha is positive, then you are assuming that it is in the real range from 0 to infinity (see the output from 'about(alpha)' ), so there is no need for an additional assumption about alpha being real.&lt;/p&gt;
&lt;p&gt;Without the VectorCalculus package you need to be aware that the inner product by default works in the complex domain:&lt;/p&gt;
&lt;p&gt;restart;&lt;br&gt;X := r -&amp;gt; sqrt(2/Pi)*alpha*exp(-alpha^2*(r.r)):&lt;br&gt;a_0:=a* &amp;lt;1/2*sqrt(3) , 1/2&amp;gt;:&lt;br&gt;r:=&amp;lt;x,y&amp;gt;:&lt;br&gt;r.r;&lt;br&gt;eq1:=int( X(r-a_0) , x=-infinity .. infinity):&lt;br&gt;simplify(eq1) assuming real;&lt;br&gt;#The following syntax can be used in Maple 14:&lt;br&gt;simplify(eq1) assuming real,alpha&amp;gt;0;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Preben Alsholm&lt;/p&gt;</description>
      <guid>94484</guid>
      <pubDate>Fri, 25 Jun 2010 10:05:55 Z</pubDate>
      <itunes:author>Preben Alsholm</itunes:author>
      <author>Preben Alsholm</author>
    </item>
    <item>
      <title>curious;</title>
      <link>http://www.mapleprimes.com/questions/94483-Error-in-Simplifytoolszn-Too-Many?ref=Feed:MaplePrimes:Error, (in simplify/tools/_zn) too many levels of recursion:Comments#comment94485</link>
      <itunes:summary>&lt;p&gt;Thanks for your reply, I took a look at it again, i just copied and pasted what you wrote, and it did the integral perfectly. Then I noticed that my original&amp;nbsp;a&lt;sub&gt;0&amp;nbsp;&lt;/sub&gt;had been replaced by a_0; I made this change and once again the program gave me the same error. Why does placing a&lt;sub&gt;0 &lt;/sub&gt;give me an error, while a_0 does not?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;sub&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-size: 10px;"&gt;Thanks;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/sub&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Thanks for your reply, I took a look at it again, i just copied and pasted what you wrote, and it did the integral perfectly. Then I noticed that my original&amp;nbsp;a&lt;sub&gt;0&amp;nbsp;&lt;/sub&gt;had been replaced by a_0; I made this change and once again the program gave me the same error. Why does placing a&lt;sub&gt;0 &lt;/sub&gt;give me an error, while a_0 does not?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;sub&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-size: 10px;"&gt;Thanks;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/sub&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
      <guid>94485</guid>
      <pubDate>Fri, 25 Jun 2010 10:20:59 Z</pubDate>
      <itunes:author>otherworld314</itunes:author>
      <author>otherworld314</author>
    </item>
    <item>
      <title>a[0] vs a_0 when a occurs</title>
      <link>http://www.mapleprimes.com/questions/94483-Error-in-Simplifytoolszn-Too-Many?ref=Feed:MaplePrimes:Error, (in simplify/tools/_zn) too many levels of recursion:Comments#comment94495</link>
      <itunes:summary>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/94483-Error-in-Simplifytoolszn-Too-Many-Levels-Of-Recursion#comment94485"&gt;@otherworld314&lt;/a&gt; it's a long standing issue with Maple: in its data-structures, a is seen as being 'part of' a[0] (because it occurs in a[0], syntactically).&amp;nbsp; Sometimes Maple gets confused by this, thinking there is a relation between a and a[0] -- which in all honesty, may or may not be there in the user's mind.&amp;nbsp; It depends on the application.&amp;nbsp; a and a_0 on the other hand are 2 completely different 'names', which are entirely unrelated.&lt;/p&gt;
&lt;p&gt;Of course, the error you get points to a bug.&amp;nbsp; But I would be willing to bet that this bug is caused by the unresolved design issue which I outlined above.&amp;nbsp; This bug can probably be patched, but there are many many more of its ilk in Maple.&lt;/p&gt;
&lt;p&gt;Best advice: don't mix names and indexed-names in the same expression.&amp;nbsp; You'll upset Maple if you do.&amp;nbsp; The end result will mostly be frustration on your part...&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/94483-Error-in-Simplifytoolszn-Too-Many-Levels-Of-Recursion#comment94485"&gt;@otherworld314&lt;/a&gt; it's a long standing issue with Maple: in its data-structures, a is seen as being 'part of' a[0] (because it occurs in a[0], syntactically).&amp;nbsp; Sometimes Maple gets confused by this, thinking there is a relation between a and a[0] -- which in all honesty, may or may not be there in the user's mind.&amp;nbsp; It depends on the application.&amp;nbsp; a and a_0 on the other hand are 2 completely different 'names', which are entirely unrelated.&lt;/p&gt;
&lt;p&gt;Of course, the error you get points to a bug.&amp;nbsp; But I would be willing to bet that this bug is caused by the unresolved design issue which I outlined above.&amp;nbsp; This bug can probably be patched, but there are many many more of its ilk in Maple.&lt;/p&gt;
&lt;p&gt;Best advice: don't mix names and indexed-names in the same expression.&amp;nbsp; You'll upset Maple if you do.&amp;nbsp; The end result will mostly be frustration on your part...&lt;/p&gt;</description>
      <guid>94495</guid>
      <pubDate>Fri, 25 Jun 2010 17:55:30 Z</pubDate>
      <itunes:author>JacquesC</itunes:author>
      <author>JacquesC</author>
    </item>
    <item>
      <title>simplified version</title>
      <link>http://www.mapleprimes.com/questions/94483-Error-in-Simplifytoolszn-Too-Many?ref=Feed:MaplePrimes:Error, (in simplify/tools/_zn) too many levels of recursion:Comments#comment94500</link>
      <itunes:summary>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/94483-Error-in-Simplifytoolszn-Too-Many-Levels-Of-Recursion#comment94495"&gt;@JacquesC&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is a simplified version of this bug:&lt;/p&gt;
&lt;pre&gt;a[0]:=a:
simplify(a);

Error, (in simplify/table) too many levels of recursion
&lt;/pre&gt;
&lt;p&gt;Tracing it, I see that &lt;strong&gt;simplify/table&lt;/strong&gt; and &lt;strong&gt;simplify&lt;/strong&gt; call each other many times.&lt;/p&gt;
&lt;p&gt;From the user point of view, I find that the main problem with indexed names is not its fragile nature, but that its usage is promoted in some areas of the documentation.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/94483-Error-in-Simplifytoolszn-Too-Many-Levels-Of-Recursion#comment94495"&gt;@JacquesC&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is a simplified version of this bug:&lt;/p&gt;
&lt;pre&gt;a[0]:=a:
simplify(a);

Error, (in simplify/table) too many levels of recursion
&lt;/pre&gt;
&lt;p&gt;Tracing it, I see that &lt;strong&gt;simplify/table&lt;/strong&gt; and &lt;strong&gt;simplify&lt;/strong&gt; call each other many times.&lt;/p&gt;
&lt;p&gt;From the user point of view, I find that the main problem with indexed names is not its fragile nature, but that its usage is promoted in some areas of the documentation.&lt;/p&gt;</description>
      <guid>94500</guid>
      <pubDate>Fri, 25 Jun 2010 20:10:56 Z</pubDate>
      <itunes:author>Alejandro Jakubi</itunes:author>
      <author>Alejandro Jakubi</author>
    </item>
    <item>
      <title>a 2D corollary</title>
      <link>http://www.mapleprimes.com/questions/94483-Error-in-Simplifytoolszn-Too-Many?ref=Feed:MaplePrimes:Error, (in simplify/tools/_zn) too many levels of recursion:Comments#comment94524</link>
      <itunes:summary>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/94483-Error-in-Simplifytoolszn-Too-Many-Levels-Of-Recursion#comment94495"&gt;@JacquesC&lt;/a&gt; A 2DMath corollary might be: don't mix subscripted names and their non-subscripted base name in the same expression (since by default subscripted names are indexed names).&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/94483-Error-in-Simplifytoolszn-Too-Many-Levels-Of-Recursion#comment94495"&gt;@JacquesC&lt;/a&gt; A 2DMath corollary might be: don't mix subscripted names and their non-subscripted base name in the same expression (since by default subscripted names are indexed names).&lt;/p&gt;</description>
      <guid>94524</guid>
      <pubDate>Sat, 26 Jun 2010 08:18:50 Z</pubDate>
      <itunes:author>pagan</itunes:author>
      <author>pagan</author>
    </item>
    <item>
      <title>@pagan&amp;nbsp;very curious, I will be more</title>
      <link>http://www.mapleprimes.com/questions/94483-Error-in-Simplifytoolszn-Too-Many?ref=Feed:MaplePrimes:Error, (in simplify/tools/_zn) too many levels of recursion:Comments#comment94532</link>
      <itunes:summary>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/94483-Error-in-Simplifytoolszn-Too-Many-Levels-Of-Recursion#comment94524"&gt;@pagan&lt;/a&gt;&amp;nbsp;&lt;br&gt;&lt;br&gt;very curious, I will be more careful from now on with the names of the vectors.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/94483-Error-in-Simplifytoolszn-Too-Many-Levels-Of-Recursion#comment94524"&gt;@pagan&lt;/a&gt;&amp;nbsp;&lt;br&gt;&lt;br&gt;very curious, I will be more careful from now on with the names of the vectors.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&amp;nbsp;&lt;/p&gt;</description>
      <guid>94532</guid>
      <pubDate>Sat, 26 Jun 2010 22:13:01 Z</pubDate>
      <itunes:author>otherworld314</itunes:author>
      <author>otherworld314</author>
    </item>
  </channel>
</rss>