Commit 1d0d05ce authored by sebastien's avatar sebastien
Browse files

trunk preprocessor: fixed bug with normcdf derivative (introduced in r2596)

git-svn-id: ac1d8469-bf42-47a9-8791-bf33cf982152
parent 90e8fbda
......@@ -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
Supports Markdown
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