Normal Distribution Table by msk

class A{static{for(double z,t,p,n,i,k=-3;k++<30;)for(i=-2;i++<9;System.out.printf(k<-1?i<0?"  Z |":(i>0?"  ":"")+" %.2f":k<0?i<0?"\n----+":"-------":i<0?"\n%-4.1f|":"%7.4f",k<-1?i*.01:i<0?k*.1:.5+p))for(n=1,z=.1*(i*.1+k),t=p=z*Math.exp(-.5*z*z)*.3989423;(n+=2)<99;)p+=t*=z*z/n;}}

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

download

return to the top page