|
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: 845 (0x34d) Description: Bits:30000682 _x og s = sqrt(1/n*sum(xi-_x)^2) Types: 8-hole paper tape Notes: Gier Text
algol<begin _____integer antal,i; _______real x,sum,kvadratsum; ____boolean fortsæt; _______select (19);i:=0;x:=read real;fortsæt:=x|0; =for i:=i+1 while fortsæt do ___ _____ __begin _____antal:=0;sum:=0;kvadratsum:=0;for x:=x,read real while x|0 do ___ _____ = __begin _____antal:=antal+1;sum:=sum+x; kvadratsum:=kvadratsum+x⨯x;end; ___if antal|read integer then writetext(|<fejl på datastrimmel|) else __ = ____ < > ____begin _____if i=1 then writetext(|<middelværdi spredning|);writecr; __ ____ < >write(| dddd.ddddd|,sum/antal,sqrt((kvadratsum-sum∧2/antal)/antal)); < > |writecr;end; ___x:=read real;fortsæt:=x|0; =end; ___end t< ___