Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
try to use rpow if the previous substitution fails
Browse files Browse the repository at this point in the history
  • Loading branch information
behackl committed Feb 17, 2016
1 parent 7acc487 commit 265e9b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sage/rings/asymptotic/growth_group.py
Expand Up @@ -3667,6 +3667,10 @@ def _substitute_(self, rules):
try:
return self.base ** self.parent()._var_._substitute_(rules)
except (ArithmeticError, TypeError, ValueError) as e:
try:
return self.parent()._var_._substitute_(rules).rpow(self.base)
except:
pass
from misc import substitute_raise_exception
substitute_raise_exception(self, e)

Expand Down

0 comments on commit 265e9b4

Please sign in to comment.