Skip to content
Snippets Groups Projects
Commit e07600cf authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Do not evalf() if expression is_integer

parent ce71f803
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,7 @@ try: ...@@ -18,7 +18,7 @@ try:
# Evaluates all constant terms # Evaluates all constant terms
evaluate_constant_terms = ReplaceOptim( evaluate_constant_terms = ReplaceOptim(
lambda e: hasattr(e, 'is_constant') and e.is_constant, lambda e: hasattr(e, 'is_constant') and e.is_constant and not e.is_integer,
lambda p: p.evalf() lambda p: p.evalf()
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment