Browse Source

Fixed negation issue.

Taddeus Kroes 13 years ago
parent
commit
cded8b7f29
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/rules/goniometry.py

+ 2 - 2
src/rules/goniometry.py

@@ -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] = \