Edit in JSFiddle
JavaScript
function stdNormal(X) { var v = (1/Math.sqrt(Math.PI * 2)) * Math.exp( -X * X / 2) return v }