Skip to content

Commit

Permalink
Limit rule to Integer second argument
Browse files Browse the repository at this point in the history
Co-authored-by: Juan Mauricio Matera <[email protected]>
  • Loading branch information
rocky and mmatera authored Feb 19, 2025
1 parent e0057f2 commit 01145c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mathics/builtin/specialfns/gamma.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ class Pochhammer(SympyFunction):

rules = {
"Pochhammer[0, 0]": "1",
"Pochhammer[a_, n_]": "Factorial[a + n - 1] / Factorial[a - 1]",
"Pochhammer[a_, n_Integer]": "Factorial[a + n - 1] / Factorial[a - 1]",
"Derivative[1,0][Pochhammer]": "(Pochhammer[#1, #2]*(-PolyGamma[0, #1] + PolyGamma[0, #1 + #2]))&",
"Derivative[0,1][Pochhammer]": "(Pochhammer[#1, #2]*PolyGamma[0, #1 + #2])&",
}
Expand Down

0 comments on commit 01145c5

Please sign in to comment.