|
DataMuseum.dkPresents historical artifacts from the history of: RegneCentralen GIER Computer |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RegneCentralen GIER Computer Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - download
Length: 1048 (0x418) Description: Bits:30000719 Styrepr for pr distrb func1. 2 udgave Types: 8-hole paper tape Notes: Gier Text
algol<begin _____integer n,i;real m,s,p; _______ ____procedure distrbfunc1(m,s,x,PROBABILITY); _________value m,s,x; _____real m,s,x,PROBABILITY; ____begin _____real A; ____real procedure psi(y); ____ _________value y;real y; _____ ____begin _____real a;a:=1/sqrt(2); ____psi:=1-1/(1+0.07052308⨯a⨯y+0.04228201⨯(a⨯y)∧2+0.00927053⨯(a⨯y)∧3 | |+0.00015201⨯(a⨯y)∧4+0.00027657⨯(a⨯y)∧5+0.00004306⨯(a⨯y)∧6)∧16; | | | |end real procedure psi; ___A:=(x-m)/s;if A<0 then PROBABILITY:=0.5-0.5⨯psi(-A) else __ ____ ____PROBABILITY:=0.5+0.5⨯psi(A);end procedure distrbfunc1; ___select(19);writecr; n:=read integer;m:=read real;s:=read real;begin _____real array X[1:n]; ____ _____for i:=1 step 1 until n do ___ ____ _____ __X[i]:=read real;for i:=1 step 1 until n do ___ ____ _____ __begin _____distrbfunc1(m,s,X[i],p);write(|d.dddd|,p);writecr; < >end ___end ___end;t< ___