Skip to content
Snippets Groups Projects
Commit d5a8952f authored by Martin Bauer's avatar Martin Bauer
Browse files

bugfix in expand_diff_full

parent f2fa99b4
Branches
Tags
No related merge requests found
...@@ -290,6 +290,8 @@ def expand_diff_full(expr, functions=None, constants=None): ...@@ -290,6 +290,8 @@ def expand_diff_full(expr, functions=None, constants=None):
diff_args = {'target': e.target, 'superscript': e.superscript} diff_args = {'target': e.target, 'superscript': e.superscript}
diff_inner = e.args[0] diff_inner = e.args[0]
diff_inner = visit(diff_inner) diff_inner = visit(diff_inner)
if diff_inner.func not in (sp.Add, sp.Mul):
return e
for term in diff_inner.args if diff_inner.func == sp.Add else [diff_inner]: for term in diff_inner.args if diff_inner.func == sp.Add else [diff_inner]:
independent_terms = 1 independent_terms = 1
dependent_terms = [] dependent_terms = []
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment