diff --git a/ExprNode.cc b/ExprNode.cc index 56ac48cdac733b7795c100a4a5d51f094dd9b1eb..a8e5a3a0876cc70f65da131ec55a3604454c38c7 100644 --- a/ExprNode.cc +++ b/ExprNode.cc @@ -1541,7 +1541,7 @@ TrinaryOpNode::computeDerivative(int deriv_id) // -(x-mu)^2/sigma^2 t13 = datatree.AddUMinus(t12); // -((x-mu)^2/sigma^2)/2 - t12 = datatree.AddDivide(t13,t11); + t12 = datatree.AddDivide(t13, datatree.Two); // exp(-((x-mu)^2/sigma^2)/2) t13 = datatree.AddExp(t12); // derivative of a standardized normal