|
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: 2268 (0x8dc) Description: Bits:30000766 Test for randomness. Yate screer Types: 8-hole paper tape Notes: Bad Chars, Gier Text, Has Comment, Parity Errors
algol<begin _____integer n,i,j; _______real my,sigma,NFTT,p,t,alfa1,alfa2,u,v,w; ____boolean ran; _______real random; ____core code ran,random; ____ ____2,46 ; boolean ran _______2,45 ; real random ____e: pm re1,mln re2 gr re1 X sr re1,gr re1 hv re LKA tl -6,ga re3 pm re1,mln re2 gr re1 X sr re1,gr re1 it re4e3: pm _ X 0gm (r-1),nkf hv re LZ grf a2,hr s1 e1: bsn (p210) DLPB t -451e2: m 9901 _e4: qq qq qq qq qq qq qq qqe; _select(35);writecr;writecr; n:=read integer;begin _____real array X[1:2;1:n]; ____ _____for j:=1 step 1 until n do ___ ____ _____ __X[1,j]:=j;for j:=1 step 1 until n do ___ ____ _____ __X[2,j]:=read real;p:=read real;if p|0 then __ = ____begin _____writetext(|< Wrong number of elements in the datagroup|); < >writecr;writecr;go to end; __ __end; ___alfa1:=read real;alfa2:=read real;u:=X[2,1];v:=X[2,2];writecr; my:=read real;sigma:=read real;j:=0;writetext(|< TIDSSERIEANALYSE.(Yule-serier)|);writecr;writecr;writecr; < >writetext(|< Test for randomness|);writecr;writecr; < >writetext(|< alfa1= |);write(|-dd.dddd|,alfa1);writecr; < > < >writetext(|< alfa2= |);write(|-dd.dddd|,alfa2);writecr; < > < >writetext(|< sigma= |);write(|_dd.dddd|,sigma);writecr;writecr; < > <, >for i:=1 step 1 until n-2 do ___ ____ _____ __begin _____gier(ran);p:=random;if p_.5 then __ < ____begin _____t:=sqrt(-2⨯ln(p));NFTT:=(t-(2.515517+.802853⨯t+.010328⨯t∧2)/ |(1+1.432788⨯t+.189269⨯t∧2+.001308⨯t∧3))⨯sigma+my; | |end else ___ ____begin _____p:=1-p; t:=sqrt(-2⨯ln(p));NFTT:=-(t-(2.515517+.802853⨯t+.010328⨯t∧2)/ |(1+1.432788⨯t+.189269⨯t∧2+.001308⨯t∧3))⨯sigma+my; | |end; ___j:=j+1; w:=-alfa1⨯u-alfa2⨯v+NFTT;X[2,j]:=w-X[2,j+2];write(|____-dddd.ddddd|,X[2,j]); <,,,, >if entier(j/5)=j/5 then writecr; __ ____u:=w;v:=u;end; ___end:end;1 2 3 1 2 1 end;t< ___ ___
1 parity errors (0.0%) Parity errors are marked in blue.