Skip to content
Snippets Groups Projects
Commit cded8b7f authored by Taddeüs Kroes's avatar Taddeüs Kroes
Browse files

Fixed negation issue.

parent e8ab5c1c
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ from itertools import permutations
from ..node import ExpressionNode as N, ExpressionLeaf as L, OP_ADD, OP_MUL, \
OP_DIV, OP_SIN, OP_COS, OP_TAN, OP_SQRT, PI, TYPE_OPERATOR, sin, cos, \
Scope
Scope, negate
from ..possibilities import Possibility as P, MESSAGES
from ..translate import _
......@@ -98,7 +98,7 @@ def negated_sinus_parameter(root, args):
"""
sin(-t) -> -sin(t)
"""
return -sin(+args[0])
return negate(sin(+args[0]), root.negated + 1)
MESSAGES[negated_sinus_parameter] = \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment