Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Wrong pochhammer symbol for negative integers (Trac #910) #1437

scipy-gitbot opened this Issue Apr 25, 2013 · 0 comments


None yet
1 participant

Original ticket http://projects.scipy.org/scipy/ticket/910 on 2009-04-01 by @pv, assigned to @pv.

special.poch(z,m) outputs strange results for z < 1:

>>> import scipy.special as sc
>>> sc.poch(-10, 3)
>>> sc.poch(-10, 4)

I'd have expected (-10)*(-9)*(-8) and (-10)*(-9)*(-8)*(-7), as prescribed in http://functions.wolfram.com/GammaBetaErf/Pochhammer/02/0002/

The current implementation is wrong for negative integer z:

def poch(z,m):
    return _gam(z+m) / _gam(z)

@pv pv closed this in b109a80 Sep 2, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment