|
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 - metrics - download
Length: 5525 (0x1595) Description: Bits:30000618 Weinbaum OK 20-12-70 Types: 8-hole paper tape Notes: Gier Text, Has10
begin _____real al,c,d,r1,r2,r,gamma,delta,dr,ke,pe,alg,cg; ____integer i,j,k,gem,itr; _______boolean lay; _______array G[1:40,1:8]; _____real procedure expint(y); ____ _________value y; real y; _____ ____begin _____real u,v,b,t,a0,a1,b0,b1; ____integer i,c,p,a; _______if y_1 then __ > ____begin _____a0:=0; b0:=a1:=1; b1:=y; c:=p:=0;v:=(if abs(y)<rep:10 -154 then10 154 else 1/y); __ ____ ____b:=y∧p; |c:=c+p; p:=1-p; a:=p+c; t:=b⨯b0+a⨯a0; a0:=b0; b0:=t; t:=b⨯b1+a⨯a1; a1:=b1; b1:=t;u:=(if abs(b0)⨯10 -154<abs(b1) then b0/b1 else10 154); __ ____ ____if abs(u/v-1)>5expint:=u⨯exp(-y);10 -9 then begin v:=u; goto rep end; __ ____ _____ ____ ___end else ___ ____expint:=((((.00107857⨯y-.00976004)⨯y+.05519968)⨯y -.24991055)⨯y+.99999193)⨯y-.57721566-ln(y);end expint; ___procedure DATO; _________begin _____integer date,i; _______boolean da; _______where(|<date|,date);da:=boolean(date); < > _______i:=integer((da∧__0__m)shift(-20)); _______ 10 10 _____writeinteger(|dd|,i); < >i:=integer((da∧__0__m)shift(-10)); _______ 20 10 _____writeinteger(|-dd|,-i); < >i:=integer(da∧__0__m); _______ 30 10writeinteger(|-dd|,-i); < >end; ___procedure ws(i); _________valuei; integeri; _____ _______for i:=i step -1 until 1 do ___ ____ _____ __writechar(0);procedure wr; _________writecr;procedure wt(t); _________string t; ______writetext(t);procedure min2(x,y,dr,delta,f,itr); _________value dr,delta; real x,y,dr,delta; _____ ____integer itr; _______real procedure f; ____ _________begin _____real p1,p2,p3,p4,p0,dx,dy; ____itr:=0; dx:=dr⨯x; dy:=dr⨯y; LI: p0:=f(x,y); L: p1:=f(x,y+dy); p2:=f(x-dx,y); p3:=f(x,y-dy); p4:=f(x+dx,y);if kbon then begin __ ____ _____write(lay,p0,p1,p2,p3,p4,dx,dy); wr end; ___LL: itr:=itr+1;if p0<p1∧p0<p2∧p0<p3∧p0<p4 then __ ____begin _____dx:=dx/2; dy:=dy/2;if abs(dx)>delta/2⨯abs(x)∨abs(dy)>delta/2⨯abs(y) then goto L __ ____ ____end else begin ___ ____ _____if p1<p0∧p1<p2∧p1<p3∧p1<p4 then begin __ ____ _____y:=y+dy; p3:=p0; p0:=p1; p1:=f(x,y+dy);p2:=f(x-dx,y); p4:=f(x+dx,y) end else ___ ____if p2<p0∧p2<p1∧p2<p3∧p2<p4 thenbegin __ _________x:=x-dx; p4:=p0; p0:=p2; p1:=f(x,y+dy);p2:=f(x-dx,y); p3:=f(x,y-dy) end else ___ ____if p3<p0∧p3<p2∧p3<p1∧p3<p4 then begin __ ____ _____y:=y-dy; p1:=p0; p0:=p3; p2:=f(x-dx,y);p3:=f(x,y-dy); p4:=f(x+dx,y) end else begin ___ ____ _____x:=x+dx; p2:=p0; p0:=p4; p1:=f(x,y+dy);p3:=f(x,y-dy); p4:=f(x+dx,y) end; ___goto LL ____end ___end min2; ___real procedure wei(al,c); ____ _________real al,c; ____begin _____real ro1,ro2,ro3,e1ro,e2ro,s,s1,s2,ke0,ke1,pe0,pe1 ____,expi2,expi4,cou,ion,e1,e2,ex1; ro1:=al⨯r;ro2:=ro1∧2; ro3:=ro2⨯ro1; |e1ro:=exp(-ro1);e2ro:=e1ro∧2; |expi2:=expint(2⨯ro1); expi4:=expint(4⨯ro1); s:=e1ro⨯(1+ro1 +ro2/3); s1:=(1-e2ro⨯(1+ro1))/ro1 + 1; ke0:=1+s⨯e1ro⨯(1 +ro1-ro2/3); ke1:=2⨯e1ro⨯(1+ro1); s2:=(1-ro1+ro2/3)/e1ro;e1:=((s∧2⨯(ln(ro1)+gamma)+2⨯s⨯s2⨯expi2) |-s2∧2⨯expi4)/ro1; |e2:=e2ro⨯(.625 -1.15⨯ro1 -.6⨯ro2 -ro3/15); ex1:=1.2⨯e1+e2; cou:=(1-e2ro⨯(1 +1.375⨯ro1 +.75⨯ro2 +ro3/6))/ro1; ion:=(e1ro⨯(5 +2⨯ro1 +16⨯ro2) -e2ro⨯e1ro⨯(5+2⨯ro1))/8/ro1; pe0:= -2⨯(s1 + s⨯ke1) + ex1; pe1:= -2⨯ke1 -2⨯s⨯(s1) + ion;d:=2⨯(c∧2⨯((1-s)∧2)+(s+1)∧2); | | |ke:=2⨯al⨯al⨯(c∧2⨯(ke0-ke1)+ke0+ke1); |pe:=al⨯(c∧2⨯(2⨯pe0-2⨯pe1+.625+cou)+2⨯c⨯(.625-cou)+2⨯pe0+2⨯pe1+cou+.625); |wei:=(pe+ke)/d;if kbon then begin __ ____ _____wr; write(lay,al,c,ke,pe,d,(pe+ke)/d); wr end; ___end wei; ___select(17);comment r=1.2 => al=1.25 ∧ c=-.59; _______r1:=read real; dr:=read real; r2:=read real; delta:=read real; al:=read real; c:=read real; gamma:=.577215665;lay:=| -d.dddddd|; < >k:=entier((r2-r1)/dr); ______reserve(|<wein|,k_8+1); < > :where(|<wein|,gem); < >wr; ws(10);DATO;wr;wt(|<Weinbaum beregning|); wr; < >wt(|< R |); ws(4); wt(|<alfa|); ws(8); < > < >wt(|<c|); ws(10); wt(|<Ep|); ws(9); wt(|<Ek|); < > < > < >ws(9); wt(|<E|); ws(9); wt(|<norm|); ws(5); wt(|<iterationer|); wr; < > < > < >for i:=1 step 1 until k do ___ ____ _____ __begin _____r:=r1+i⨯dr; min2(al,c,.1,delta,wei,itr);write(|-dd.d|,r); < >write(lay,al,c,pe/d,ke/d,(pe+ke)/d+(if r>0 then 1/r else 0), __ ____ ____1/sqrt(2⨯d));writeinteger(| -ddddd|,itr); wr; < >alg:=G[i,1]:=al; cg:=G[i,2]:=c; G[i,3]:=d; G[i,4]:=ke;G[i,5]:=pe; G[i,6]:=r; G[i,7]:=realitr; ____if imod40=0 then put(G,gem,1+(i-1)_40⨯8); __ ___ ____ :end forstatement ___end t< ___