<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, Unable to compute coefficient</title>
    <link>http://www.mapleprimes.com/questions/132787-Unable-To-Compute-Coefficient</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Tue, 09 Jun 2026 09:25:49 GMT</lastBuildDate>
    <pubDate>Tue, 09 Jun 2026 09:25:49 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, Unable to compute coefficient</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, Unable to compute coefficient</title>
      <link>http://www.mapleprimes.com/questions/132787-Unable-To-Compute-Coefficient</link>
    </image>
    <item>
      <title>coeff(algsubs(1/r=k,a),k);</title>
      <link>http://www.mapleprimes.com/questions/132787-Unable-To-Compute-Coefficient?ref=Feed:MaplePrimes:Unable to compute coefficient:Comments#answer132792</link>
      <itunes:summary>&lt;p&gt;coeff(algsubs(1/r=k,a),k);&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;coeff(algsubs(1/r=k,a),k);&lt;/p&gt;</description>
      <guid>132792</guid>
      <pubDate>Mon, 09 Apr 2012 09:11:28 Z</pubDate>
      <itunes:author>andrei bobrov</itunes:author>
      <author>andrei bobrov</author>
    </item>
    <item>
      <title>Another way</title>
      <link>http://www.mapleprimes.com/questions/132787-Unable-To-Compute-Coefficient?ref=Feed:MaplePrimes:Unable to compute coefficient:Comments#answer132793</link>
      <itunes:summary>&lt;p&gt;Up to &lt;a href="http://www.mapleprimes.com/questions/40164-Retrieving-The-Constant-In-An-Equation"&gt;http://www.mapleprimes.com/questions/40164-Retrieving-The-Constant-In-An-Equation&lt;/a&gt; ,&lt;/p&gt;
&lt;p&gt;&lt;img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZoAAAARCAIAAABrZP2bAAAB+ElEQVR4nO3bIZLCMBQG4BwAyUF6CA6AQCCQEYhKZB2HQCA5BqIHQEQiEQgEAhGBQGTFzu5mkrw0YZM0u/N/qtD05SH6T9NSpgAA/gU2dgMAAGkgzgDgn8gVZ4wxxn6KSynX6/Xz+cw0XVabzeZ6vY7dBQAMyHh1pscZ51wIkW+uVNgX/cvb7Tafz1+v11hdAUCIjFdn39tCiNVqlWmihPSejUTruu5wOBTvCAAilIiztm13u12miRLyxFnf97PZrHhHABCBjDN92WWsv6iPVBw0TXM8Hu3idilPJ8qKGM8wYyQj2BWc20qp+/0+mUz8fQLAuBwBoZ/q+obzbB8coJSaTqfn85maZTCknPWpwSE1B+dyVmCMPR6PN8oCQBnuOAvcDhn5+fFyuRjfOBPHPpDa5Tz2vRQLnM7+FQBQFXLB5Vyy6Rvh0eOMs+HO6Poh441dv1xsKsQZQPUcJ63/0sleZior+4zD7cVmbJwFrjQHa0bNaO/FYhOgZhFXKJ7bZ/51aNM0fd9TZcnOIu+ahdQML2IUxKMAgPqRjwL8azFjmD7ePrZt2/1+T9UhOwuuH14zalId/qgBUL8S72wKIRaLRcKCqcIr3Ha7xd9oASpXKBc456fTKUmp8lkmpVwul3jJCaByhaJBSsk5/6OvoHddh2eaAPX7AGaiNN1nnfU/AAAAAElFTkSuQmCC" alt=""&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Up to &lt;a href="http://www.mapleprimes.com/questions/40164-Retrieving-The-Constant-In-An-Equation"&gt;http://www.mapleprimes.com/questions/40164-Retrieving-The-Constant-In-An-Equation&lt;/a&gt; ,&lt;/p&gt;
&lt;p&gt;&lt;img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZoAAAARCAIAAABrZP2bAAAB+ElEQVR4nO3bIZLCMBQG4BwAyUF6CA6AQCCQEYhKZB2HQCA5BqIHQEQiEQgEAhGBQGTFzu5mkrw0YZM0u/N/qtD05SH6T9NSpgAA/gU2dgMAAGkgzgDgn8gVZ4wxxn6KSynX6/Xz+cw0XVabzeZ6vY7dBQAMyHh1pscZ51wIkW+uVNgX/cvb7Tafz1+v11hdAUCIjFdn39tCiNVqlWmihPSejUTruu5wOBTvCAAilIiztm13u12miRLyxFnf97PZrHhHABCBjDN92WWsv6iPVBw0TXM8Hu3idilPJ8qKGM8wYyQj2BWc20qp+/0+mUz8fQLAuBwBoZ/q+obzbB8coJSaTqfn85maZTCknPWpwSE1B+dyVmCMPR6PN8oCQBnuOAvcDhn5+fFyuRjfOBPHPpDa5Tz2vRQLnM7+FQBQFXLB5Vyy6Rvh0eOMs+HO6Poh441dv1xsKsQZQPUcJ63/0sleZior+4zD7cVmbJwFrjQHa0bNaO/FYhOgZhFXKJ7bZ/51aNM0fd9TZcnOIu+ahdQML2IUxKMAgPqRjwL8azFjmD7ePrZt2/1+T9UhOwuuH14zalId/qgBUL8S72wKIRaLRcKCqcIr3Ha7xd9oASpXKBc456fTKUmp8lkmpVwul3jJCaByhaJBSsk5/6OvoHddh2eaAPX7AGaiNN1nnfU/AAAAAElFTkSuQmCC" alt=""&gt;&lt;/p&gt;</description>
      <guid>132793</guid>
      <pubDate>Mon, 09 Apr 2012 09:22:33 Z</pubDate>
      <itunes:author>Markiyan Hirnyk</itunes:author>
      <author>Markiyan Hirnyk</author>
    </item>
    <item>
      <title>Worked</title>
      <link>http://www.mapleprimes.com/questions/132787-Unable-To-Compute-Coefficient?ref=Feed:MaplePrimes:Unable to compute coefficient:Comments#comment132801</link>
      <itunes:summary>&lt;p&gt;Hi again, Markiyan. It certainly worked.&amp;nbsp;Thank you&amp;nbsp;for the solution and&amp;nbsp;the post as well.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Hi again, Markiyan. It certainly worked.&amp;nbsp;Thank you&amp;nbsp;for the solution and&amp;nbsp;the post as well.&lt;/p&gt;</description>
      <guid>132801</guid>
      <pubDate>Mon, 09 Apr 2012 18:20:22 Z</pubDate>
      <itunes:author>mgu</itunes:author>
      <author>mgu</author>
    </item>
    <item>
      <title>n=0</title>
      <link>http://www.mapleprimes.com/questions/132787-Unable-To-Compute-Coefficient?ref=Feed:MaplePrimes:Unable to compute coefficient:Comments#comment132805</link>
      <itunes:summary>&lt;p&gt;We were not told that n is a positive integer, were we?&lt;/p&gt;
&lt;p&gt;Is this suggested answer correct when n=0?&lt;/p&gt;
&lt;p&gt;There are four special cases, where the powers of `r` involve n. Of those, the cases n={-3,-2,-1} also make the denominator vanish.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;We were not told that n is a positive integer, were we?&lt;/p&gt;
&lt;p&gt;Is this suggested answer correct when n=0?&lt;/p&gt;
&lt;p&gt;There are four special cases, where the powers of `r` involve n. Of those, the cases n={-3,-2,-1} also make the denominator vanish.&lt;/p&gt;</description>
      <guid>132805</guid>
      <pubDate>Mon, 09 Apr 2012 19:56:39 Z</pubDate>
      <itunes:author>Pseudomodo</itunes:author>
      <author>Pseudomodo</author>
    </item>
    <item>
      <title>This is the only exceptional case</title>
      <link>http://www.mapleprimes.com/questions/132787-Unable-To-Compute-Coefficient?ref=Feed:MaplePrimes:Unable to compute coefficient:Comments#comment132807</link>
      <itunes:summary>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/132787-Unable-To-Compute-Coefficient#comment132805"&gt;@Pseudomodo&lt;/a&gt; The arguments:&lt;/p&gt;
&lt;p&gt;&amp;gt; eval(a, n = -1);&lt;br&gt;&lt;br&gt;&lt;span style="text-decoration: underline;"&gt;Error, numeric exception: division by zero&lt;/span&gt;&lt;br&gt;&amp;gt; eval(a, n = -2);&lt;br&gt;&lt;br&gt;&lt;span style="text-decoration: underline;"&gt;Error, numeric exception: division by zero&lt;/span&gt;&lt;br&gt;&amp;gt; eval(a, n = -3);&lt;br&gt;&lt;br&gt;&lt;span style="text-decoration: underline;"&gt;Error, numeric exception: division by zero&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/132787-Unable-To-Compute-Coefficient#comment132805"&gt;@Pseudomodo&lt;/a&gt; The arguments:&lt;/p&gt;
&lt;p&gt;&amp;gt; eval(a, n = -1);&lt;br&gt;&lt;br&gt;&lt;span style="text-decoration: underline;"&gt;Error, numeric exception: division by zero&lt;/span&gt;&lt;br&gt;&amp;gt; eval(a, n = -2);&lt;br&gt;&lt;br&gt;&lt;span style="text-decoration: underline;"&gt;Error, numeric exception: division by zero&lt;/span&gt;&lt;br&gt;&amp;gt; eval(a, n = -3);&lt;br&gt;&lt;br&gt;&lt;span style="text-decoration: underline;"&gt;Error, numeric exception: division by zero&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;/p&gt;</description>
      <guid>132807</guid>
      <pubDate>Mon, 09 Apr 2012 20:29:26 Z</pubDate>
      <itunes:author>Markiyan Hirnyk</itunes:author>
      <author>Markiyan Hirnyk</author>
    </item>
    <item>
      <title>for this example</title>
      <link>http://www.mapleprimes.com/questions/132787-Unable-To-Compute-Coefficient?ref=Feed:MaplePrimes:Unable to compute coefficient:Comments#comment132809</link>
      <itunes:summary>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/132787-Unable-To-Compute-Coefficient#comment132807"&gt;@Markiyan Hirnyk&lt;/a&gt; For this example, n=0 could get special treatment (unless we are informed that n::posint). And yes, I was aware of what happened for n in {-3,-2,-1}.&lt;/p&gt;
&lt;p&gt;But for other examples, more work may be required. Suppose that the term -240*r^(2*n+4)*n^2 in the numerator of `a` had instead been -240*r^(2*n-4)*n^2. Then n=2 would be yet another special case that would render the approach eval(r*a,r=0) as invalid.&lt;/p&gt;
&lt;p&gt;A safer method might be to apply expand, combine(...,power), collect w.r.t `r`, and then examine the powers of r. The examination could solve the various powers of `r` for `n`, and build up a piecewise result involving those solutions-in-n.&lt;/p&gt;
&lt;p&gt;Maybe a result like this:&lt;/p&gt;
&lt;pre&gt;a := (1/11520)*(4518-4320*r^(2*n)-5760*_C1*n^4*r^2-97920*_C1*n^2*r^2-97920*_C1*n*r^2
     -40320*_C1*n^3*r^2+2020*r^6*n^3+1500*r^6*n^2-1440*r^(2*n+6)+60*r^8-2880*r^(2+2*n)
     -720*r^4-100*n^5-339*n^2+3018*r^2+4560*r^(2+2*n)*n-240*r^(2*n-4)*n^2
     -480*r^(2+2*n)*n^4+50*r^8*n-130*r^8*n^4-270*r^8*n^3-170*r^8*n^2-20*r^8*n^5
     +480*r^(2*n+6)*n+480*r^(2*n+6)*n^3-480*r^(2*n+6)*n^2-1680*r^(2+2*n)*n^3
     +160*n^5*r^6-102*n*r+320*r^2*n^5+1783*r^2*n^4-34560*_C1*r^2-360*r^4*n^5
     -102*n^2*r-42*n^3*r-6*n^4*r+551*r^2*n^2+2551*r^2*n-1440*n^2*r^4-3240*r^4*n
     +240*r^(2*n)*n^2+1200*r^(2*n)*n^3-5040*r^(2*n)*n+240*r^(2*n)*n^4
     +480*r^(2+2*n)*n^2+97920*_C1*n^2+97920*_C1*n+40320*_C1*n^3+5760*_C1*n^4
     +2140*n*r^6+2481*r^2*n^3+240*r^(2*n+4)*n^4-3600*r^4*n^3-2160*r^4*n^4
     +1020*r^6*n^4+1800*r^6-507*n^4-589*n^3+34560*_C1-36*r-1399*n)
     /((17*n^2+17*n+6+7*n^3+n^4)*r);

piecewise(n = 0, 11/3840+(1/2)*_C1,
          n = 2, (1/2)*_C1-277/34560,
          (1/11520)*
           (97920*_C1*n^2+97920*_C1*n+40320*_C1*n^3+5760*_C1*n^4+4518-507*n^4
            -339*n^2-589*n^3-100*n^5-1399*n+34560*_C1)/(17*n^2+17*n+6+7*n^3+n^4));
&lt;/pre&gt;
&lt;p&gt;Naturally, it could be that the questioner's method of arriving at expression `a` precludes such powers as r^(2*n-4) in the numerator.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/132787-Unable-To-Compute-Coefficient#comment132807"&gt;@Markiyan Hirnyk&lt;/a&gt; For this example, n=0 could get special treatment (unless we are informed that n::posint). And yes, I was aware of what happened for n in {-3,-2,-1}.&lt;/p&gt;
&lt;p&gt;But for other examples, more work may be required. Suppose that the term -240*r^(2*n+4)*n^2 in the numerator of `a` had instead been -240*r^(2*n-4)*n^2. Then n=2 would be yet another special case that would render the approach eval(r*a,r=0) as invalid.&lt;/p&gt;
&lt;p&gt;A safer method might be to apply expand, combine(...,power), collect w.r.t `r`, and then examine the powers of r. The examination could solve the various powers of `r` for `n`, and build up a piecewise result involving those solutions-in-n.&lt;/p&gt;
&lt;p&gt;Maybe a result like this:&lt;/p&gt;
&lt;pre&gt;a := (1/11520)*(4518-4320*r^(2*n)-5760*_C1*n^4*r^2-97920*_C1*n^2*r^2-97920*_C1*n*r^2
     -40320*_C1*n^3*r^2+2020*r^6*n^3+1500*r^6*n^2-1440*r^(2*n+6)+60*r^8-2880*r^(2+2*n)
     -720*r^4-100*n^5-339*n^2+3018*r^2+4560*r^(2+2*n)*n-240*r^(2*n-4)*n^2
     -480*r^(2+2*n)*n^4+50*r^8*n-130*r^8*n^4-270*r^8*n^3-170*r^8*n^2-20*r^8*n^5
     +480*r^(2*n+6)*n+480*r^(2*n+6)*n^3-480*r^(2*n+6)*n^2-1680*r^(2+2*n)*n^3
     +160*n^5*r^6-102*n*r+320*r^2*n^5+1783*r^2*n^4-34560*_C1*r^2-360*r^4*n^5
     -102*n^2*r-42*n^3*r-6*n^4*r+551*r^2*n^2+2551*r^2*n-1440*n^2*r^4-3240*r^4*n
     +240*r^(2*n)*n^2+1200*r^(2*n)*n^3-5040*r^(2*n)*n+240*r^(2*n)*n^4
     +480*r^(2+2*n)*n^2+97920*_C1*n^2+97920*_C1*n+40320*_C1*n^3+5760*_C1*n^4
     +2140*n*r^6+2481*r^2*n^3+240*r^(2*n+4)*n^4-3600*r^4*n^3-2160*r^4*n^4
     +1020*r^6*n^4+1800*r^6-507*n^4-589*n^3+34560*_C1-36*r-1399*n)
     /((17*n^2+17*n+6+7*n^3+n^4)*r);

piecewise(n = 0, 11/3840+(1/2)*_C1,
          n = 2, (1/2)*_C1-277/34560,
          (1/11520)*
           (97920*_C1*n^2+97920*_C1*n+40320*_C1*n^3+5760*_C1*n^4+4518-507*n^4
            -339*n^2-589*n^3-100*n^5-1399*n+34560*_C1)/(17*n^2+17*n+6+7*n^3+n^4));
&lt;/pre&gt;
&lt;p&gt;Naturally, it could be that the questioner's method of arriving at expression `a` precludes such powers as r^(2*n-4) in the numerator.&lt;/p&gt;</description>
      <guid>132809</guid>
      <pubDate>Mon, 09 Apr 2012 20:54:26 Z</pubDate>
      <itunes:author>Pseudomodo</itunes:author>
      <author>Pseudomodo</author>
    </item>
  </channel>
</rss>