Skip to content

Commit fa01809

Browse files
Merge pull request sympy#19248 from iammosespaulr/fix_holonomic
Fix holonomic when run without the cache
2 parents 771054c + 0050b55 commit fa01809

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sympy/holonomic/holonomic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2792,7 +2792,7 @@ def _convert_meijerint(func, x, initcond=True, domain=QQ):
27922792
# lists for sum of meijerg functions
27932793
fac_list = [fac * i[0] for i in g]
27942794
t = po.as_base_exp()
2795-
s = t[1] if t[0] is x else S.Zero
2795+
s = t[1] if t[0] == x else S.Zero
27962796
po_list = [s + i[1] for i in g]
27972797
G_list = [i[2] for i in g]
27982798

@@ -2807,7 +2807,7 @@ def _shift(func, s):
28072807
a = d[b]
28082808

28092809
t = b.as_base_exp()
2810-
b = t[1] if t[0] is x else S.Zero
2810+
b = t[1] if t[0] == x else S.Zero
28112811
r = s / b
28122812
an = (i + r for i in func.args[0][0])
28132813
ap = (i + r for i in func.args[0][1])

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy