Skip to content

Commit c3c0a63

Browse files
isurufinducer
authored andcommitted
Keep Rational as it is
1 parent a3efacc commit c3c0a63

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

sumpy/symbolic.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,6 @@ def map_Mul(self, expr): # noqa: N802
308308
if isinstance(child, Pow) and isinstance(child.exp, Integer) \
309309
and child.exp < 0:
310310
den_args.append(self.rec(child.base)**(-self.rec(child.exp)))
311-
elif isinstance(child, Rational) and not isinstance(child, Integer):
312-
num_args.append(self.rec(child.p))
313-
den_args.append(self.rec(child.q))
314311
else:
315312
num_args.append(self.rec(child))
316313

0 commit comments

Comments
 (0)