Skip to content

Commit

Permalink
fixed bug with sqrt of negative exprdev value
Browse files Browse the repository at this point in the history
  • Loading branch information
chakravala committed Oct 11, 2018
1 parent 1c22db6 commit f205b1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/exprval.jl
Expand Up @@ -48,5 +48,5 @@ function exprval(expr)
val = expravg(expr)
cal = callcount(expr)
mal = sqrt(exprdev(expr,val[2],cal))
sqrt(val[2]*mal)*val[4]*cal, mal, cal, val[2], val[4]
sqrt(abs(val[2]*mal))*val[4]*cal, mal, cal, val[2], val[4]
end

0 comments on commit f205b1f

Please sign in to comment.