Normal Distribution Table by nn

f={z->0.3989423/Math.exp(z*z/2e8)/2e4}
s=0.5
(p=0.&printf)'  Z | 0.00'
9.times{p'   0.0%d',++it}
p'\n----+'+'-'*70
0.upto(30900){v->v%100||p(v%1000?' %2$.4f':'\n%.1f | %.4f',v/1e4,s)
s+=f(v)+f(v+1)}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page