|
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: 1265 (0x4f1) Description: Bits:30000706 Rangordning Types: 8-hole paper tape Notes: Gier Text
algol<begin _____integer m,n,i,j; _______select(19);writecr; m:=read integer;n:=read integer;begin _____real array A[1:m,1:n];real array B[1:m,1:n]; ____ _____ ____ _____procedure rangordning(m,n,MATRIX,RANGMATRIX); _________value m,n; _____integer m,n; _______real array MATRIX;real array RANGMATRIX; ____ _____ ____ _____begin _____integer i,j,k,sum a,sum b; _______for i:=1 step 1 until m do ___ ____ _____ __begin _____for j:=1 step 1 until n do ___ ____ _____ __begin _____sum a:=0;sum b:=-1;for k:=1 step 1 until n do ___ ____ _____ __begin _____if MATRIX[i,j]<MATRIX[i,k] then sum a:=sum a+1; __ ____if MATRIX[i,j]=MATRIX[i,k] then sum b:=sum b+1; __ ____end; ___RANGMATRIX[i,j]:=(2⨯(n-sum a)-sum b)/2;write(|__dd.dd|,RANGMATRIX[i,j]); <,, >if 10⨯(j_10)-j=0 then writecr; __ : ____end;writecr; ___end ___end procedure rangordning; ___for i:=1 step 1 until m do ___ ____ _____ __begin _____for j:=1 step 1 until n do ___ ____ _____ __A[i,j]:=read real;end; ___rangordning(m,n,A,B);end ___end;t< ___