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

Fixed in derivative operator

parent dc3ad274
Branches
Tags
No related merge requests found
......@@ -152,7 +152,7 @@ class DiffOperator(sp.Expr):
args = normalizeProduct(mul)
diffs = [a for a in args if isinstance(a, DiffOperator)]
if len(diffs) == 0:
return mul
return mul * argument
rest = [a for a in args if not isinstance(a, DiffOperator)]
diffs.sort(key=defaultDiffSortKey)
result = argument
......@@ -166,7 +166,7 @@ class DiffOperator(sp.Expr):
elif expr.func == sp.Add:
return expr.func(*[handleMul(a) for a in expr.args])
else:
return expr
return expr * argument
# ----------------------------------------------------------------------------------------------------------------------
......
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