Dear Statisticians,
Sometimes ago, someone has asked about the computer program in BASIC
language for Normal Distribution. Here is the program in Quick Basic
format
a=0.31938153
b=-0.356563782
c=1.78147937
d=1.821255978
e=1.330274429
p=0.2316419
INPUT "x =";x
t=1/(1+p*x)
q=1/SQR(2*PI)*EXP(-x^2/2)
PRINT "P(x) = ";1-q*(a*t+b*t^2+c*t^3+d*t^4+e*t^5)
END
I hope the listing would solve the problem.
Regards,
Ahmed Faisal Siddiqi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|