<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - comments on Post, hypergeom convert standard functions</title>
    <link>http://www.mapleprimes.com/posts/120598-Hypergeom-Convert-Standard-Functions</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 13:38:52 GMT</lastBuildDate>
    <pubDate>Wed, 10 Jun 2026 13:38:52 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest comments added to the Post, hypergeom convert standard functions</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - comments on Post, hypergeom convert standard functions</title>
      <link>http://www.mapleprimes.com/posts/120598-Hypergeom-Convert-Standard-Functions</link>
    </image>
    <item>
      <title>Special cases</title>
      <link>http://www.mapleprimes.com/posts/120598-Hypergeom-Convert-Standard-Functions?ref=Feed:MaplePrimes:hypergeom convert standard functions:Comments#comment120602</link>
      <itunes:summary>&lt;p&gt;Maple traditionally ignores special cases.&lt;/p&gt;
&lt;p&gt;One of the well-known examples is&lt;/p&gt;
&lt;pre&gt;int(x^k,x);
                                (k + 1)
                               x
                               --------
                                k + 1
&lt;/pre&gt;
&lt;p&gt;which is wrong for k=-1.&lt;/p&gt;
&lt;p&gt;In this example with hypergeom, not only conversion to StandardFunctions is wrong. Conversion to elementary is wrong even with assumptions,&lt;/p&gt;
&lt;pre&gt;convert(P,elementary) assuming k::posint;

                   (-2 k - 1)        2 1/2 (2 k + 1)
                  2           (1 + (z )   )
                  ----------------------------------
                                 2 1/2
                               (z )

eval(%,k=1);

                                   2 1/2 3
                            (1 + (z )   )
                            --------------
                                  2 1/2
                              8 (z )
&lt;/pre&gt;
&lt;p&gt;while the correct answer is&lt;/p&gt;
&lt;pre&gt;convert(eval(P,k=1),elementary);

                                      2
                                     z
                              3/4 + ----
                                     4
&lt;/pre&gt;
&lt;p&gt;Without assumptions, series are also wrong for positive integers k,&lt;/p&gt;
&lt;pre&gt;series(P,z,1);

             (-2 k - 1)  -1    (-2 k - 1)
            2           z   + 2           (2 k + 1) + O(z)

series(P,z,3) assuming k::posint;

                       (-2 k)                2
                      2       (2 k + 1) + O(z )
&lt;/pre&gt;
&lt;p&gt;Alec&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Post, hypergeom convert standard functions</description>
      <guid>120602</guid>
      <pubDate>Sun, 29 May 2011 00:40:48 Z</pubDate>
      <itunes:author>Alec Mihailovs</itunes:author>
      <author>Alec Mihailovs</author>
    </item>
    <item>
      <title>So I guess this hypergeometric is worse than</title>
      <link>http://www.mapleprimes.com/posts/120598-Hypergeom-Convert-Standard-Functions?ref=Feed:MaplePrimes:hypergeom convert standard functions:Comments#comment120604</link>
      <itunes:summary>&lt;p&gt;So I guess this hypergeometric is worse than I thought. &amp;nbsp;1 is on the boundary of the circle of convergence, so the behavior there (z=0 in the worksheet)&amp;nbsp;is from analytic continuation. &amp;nbsp;When k is not a positive integer there is a pole there, but when k is a positive integer it is a polynomial and has no pole there. &amp;nbsp;The residue for the pole does not go to zero as k approaches an integer.&lt;/p&gt;
&lt;!--break--&gt;
&lt;p&gt;---&lt;/p&gt;
&lt;p&gt;G A Edgar&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Post, hypergeom convert standard functions</description>
      <guid>120604</guid>
      <pubDate>Sun, 29 May 2011 01:29:19 Z</pubDate>
      <itunes:author>edgar</itunes:author>
      <author>edgar</author>
    </item>
    <item>
      <title>Yes</title>
      <link>http://www.mapleprimes.com/posts/120598-Hypergeom-Convert-Standard-Functions?ref=Feed:MaplePrimes:hypergeom convert standard functions:Comments#comment120612</link>
      <itunes:summary>&lt;p&gt;Yes, it's that weird case in which approaching [-1, -1/2, -2] by [a, b, c] along different curves (in the (a,b,c)-space) gives different limits for the hypergeom.&lt;/p&gt;
&lt;p&gt;In particular,&lt;/p&gt;
&lt;pre&gt;evalf(Limit(hypergeom([-k,1/2-k],[-2*k],0.99),k=1));

                             1.663750000

evalf(Limit(hypergeom([-k,1/2-k],[3*k-5],0.99),k=1));

                             0.1450000000
&lt;/pre&gt;
&lt;p&gt;while&lt;/p&gt;
&lt;pre&gt;eval(3/4+z^2/4,z=0.1);

                             0.7525000000
&lt;/pre&gt;
&lt;p&gt;The singularity at z=0 for non-integer k is not actually a pole in its usual sense - because the function is even. There is a pole on every branch though (there are 2 branches), with residues of the opposite sign, and a branch cut coming through them.&lt;/p&gt;
&lt;p&gt;The series given by Maple for P is correct only in the right half-plane (with Re(z)&amp;gt;0 or Re(z)=0 and Im(z)&amp;gt;0 - in other words, with csgn(z)=1) and should have the opposite sign at z&lt;sup&gt;-1&lt;/sup&gt; and other odd powers of z in the left half plane (with Re(z)&amp;lt;0 or Re(z)=0 and Im(z)&amp;lt;0 - i.e. with csgn(z)=-1).&lt;/p&gt;
&lt;p&gt;The residue defined through the contour integral (with a half of the contour on one branch and another half - on another branch, so it is not actually a contour) is 0 - the integral on the right hand side of it cancels with the integral on the left hand side, and the value given by Maple,&lt;/p&gt;
&lt;pre&gt;residue(P,z=0);

                              (-2 k - 1)
                             2
&lt;/pre&gt;
&lt;p&gt;is just plain wrong - either residues of both poles should be listed - this one and one with the opposite sign, or their sum which is 0. Otherwise the total sum of residues will be wrong.&lt;/p&gt;
&lt;p&gt;By the way, the series for sqrt(z^2) and 1/sqrt(z^2) etc. are also wrong,&lt;/p&gt;
&lt;pre&gt;series(sqrt(z^2),z);

                                  z
&lt;/pre&gt;
&lt;p&gt;Simplifying a function helps,&lt;/p&gt;
&lt;pre&gt;series(simplify(sqrt(z^2)),z);

                              csgn(z) z

series(simplify(P),z,1);

                         (-k)          -1      0
                    1/2 4     csgn(z) z   + O(z )

simplify(P);

                   (-k)                        (2 k + 1)
                  4     csgn(z) (1 + csgn(z) z)
              1/2 --------------------------------------
                                    z
&lt;/pre&gt;
&lt;p&gt;(which is again wrong for positive integer k).&lt;/p&gt;
&lt;p&gt;But no help for the residue, it's actually getting even worse, including z in the answer,&lt;/p&gt;
&lt;pre&gt;residue(simplify(P),z=0);

                                 csgn(z)
                             1/2 -------
                                    k
                                   4
&lt;/pre&gt;
&lt;p&gt;Also, that gives a proof that 0=1 in Maple,&lt;/p&gt;
&lt;pre&gt;f:=(sqrt(z^2)-z)/2:
eval(series(f,z)=series(simplify(f),z),z=-1);

                                0 = 1
&lt;/pre&gt;
&lt;p&gt;The following is interesting and puzzling a little bit,&lt;/p&gt;
&lt;pre&gt;eval(simplify(P),k=1) assuming z&amp;gt;0:   #limit on one branch
eval(simplify(P),k=1) assuming z&amp;lt;0:   #limit on another branch
expand(%+%%);                         #the sum of limits on both branches

                                      2
                                     z
                              3/4 + ----
                                     4
&lt;/pre&gt;
&lt;p&gt;Alec&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Post, hypergeom convert standard functions</description>
      <guid>120612</guid>
      <pubDate>Sun, 29 May 2011 06:10:52 Z</pubDate>
      <itunes:author>Alec Mihailovs</itunes:author>
      <author>Alec Mihailovs</author>
    </item>
  </channel>
</rss>