Minor simplification

issue#70
Sébastien Villemot 2020-10-07 17:15:53 +02:00
parent 4560639eb4
commit e736b9234f
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 1 additions and 2 deletions

View File

@ -3819,6 +3819,7 @@ BinaryOpNode::composeDerivatives(expr_t darg1, expr_t darg2)
case BinaryOpcode::plus:
return datatree.AddPlus(darg1, darg2);
case BinaryOpcode::minus:
case BinaryOpcode::equal:
return datatree.AddMinus(darg1, darg2);
case BinaryOpcode::times:
t11 = datatree.AddTimes(darg1, arg2);
@ -3909,8 +3910,6 @@ BinaryOpNode::composeDerivatives(expr_t darg1, expr_t darg2)
t13 = datatree.AddMinus(datatree.One, t11);
t14 = datatree.AddTimes(t13, darg2);
return datatree.AddPlus(t14, t12);
case BinaryOpcode::equal:
return datatree.AddMinus(darg1, darg2);
}
// Suppress GCC warning
exit(EXIT_FAILURE);