Menu

#3564 pochhammer(a,u-v);pochhammer(a,v-u)

None
wont-fix
nobody
pochhammer (4)
5
2019-09-01
2019-06-22
No

pochhammer(a,u-v) gives an incorrect answer
Apparently pochhammer() has an opinion about ascii ordering in the second argument; the same thing happens with m-n,n-m.
I looked at the lisp file but I am not that good at lisp.
I will make a macro work around for my work.

Here is a cut and paste

maxima
Maxima 5.42.0 http://maxima.sourceforge.net
using Lisp SBCL 1.4.5.debian
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
The function bug_report() provides bug reporting information.
(%i1) batch("maxima-poch.mac")$

read and interpret file: /home/rrogers/tmp/maxima-poch.mac
(%i2) pochhammer(a,u-v)
                                      1
(%o2)                        --------------------
                             ((- v) + u + a)
                                            v - u
(%i3) pochhammer(a,v-u)
(%o3)                              (a)
                                      v - u
(%i4) 

Attached is maxima-poch.mac. My cut and paste didn't come through very well.

1 Attachments

Related

Bugs: #3564

Discussion

  • Robert Dodier

    Robert Dodier - 2019-06-22
    • labels: --> pochhammer
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,11 +1,10 @@
    -
    -pochhammer(a,u-v) gives an incorrect answer
    +`pochhammer(a,u-v)` gives an incorrect answer
     Apparently pochhammer() has an opinion about ascii ordering in the second argument; the same thing happens with m-n,n-m.
     I looked at the lisp file but I am not _that_ good at lisp.
     I will make a macro work around for my work.
    
     Here is a cut and paste
    -_______________
    +~~~~
     maxima
     Maxima 5.42.0 http://maxima.sourceforge.net
     using Lisp SBCL 1.4.5.debian
    @@ -24,5 +23,5 @@
     (%o3)                              (a)
                                           v - u
     (%i4) 
    -____________________________
    -Attached is maxima-poch.mac.  My cut and paste didn't come through very well.
    +~~~~
    +Attached is `maxima-poch.mac`.  My cut and paste didn't come through very well.
    
     
  • Robert Dodier

    Robert Dodier - 2019-06-22

    Can you explain what is incorrect in the result of pochhammer(x, u - v)?

    From what I can tell the result is correct, although perhaps needlessly complicated. If that's the case, then the problem to be solved is to suppress the simplification under some conditions. Let's verify what kind of problem we have to solve and go from there.

     
  • Robert Dodier

    Robert Dodier - 2019-09-01
    • status: open --> wont-fix
     
  • Robert Dodier

    Robert Dodier - 2019-09-01

    I'm closing this item as "won't fix" since it appears that the pochhammer result is correct (although more complicated than it needs to be). Issues related to celine, zeilberger, etc can be addressed in separate reports.

     

Log in to post a comment.