|
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: 1886 (0x75e) Description: Bits:30000619 Opg 698; MD; S. Chr. 27.5.62 Types: 8-hole paper tape Notes: Gier Text, Has10
begin comment program til afprøvning af MD-procedure; _____ _______real a, b, c, d, re, ri; ____integer n; _______boolean bo; _______switch S := s1, s2, s3, s4, s5; ______procedure MD(a, b, c, d, re, ri, bo); _________value a, b, c, d; _____real a, b, c, d, re, ri; ____boolean bo; _______comment multiplikation kræver bo := false , _______ _____division kræver bo := true; ____begin real k; _____ ____if bo then begin d := (-d); k := (c∧2 + d∧2) end __ ____ _____ | | ___else k := 1; ____re := (a⨯c - b⨯d)/k ; ri := (b⨯c + a⨯d)/kend procedure MD; ___comment her starter prøveprogrammet; _______trykvr;tryktom(50); trykvr; tryktekst(|< <Prøve af multiplikation-division med komplekse tal. a = b = c = d = re = ri =|); >n := 1 ;s1 : a := 1 ; b := 0 ; c := 3 ; d := 4 ; bo := false ; goto t ; _____ ____s2 : a := 1 ; b := 2 ; c := 3 ; d := 4 ; bo := false ; goto t ; _____ ____s3 : a := 0 ; b := -4.5;c :=-11;d :=0.3; bo := true ; goto t ; ____ ____s4 : a := 6; b := -13;c := 0 ; d :=-10; bo := true ; goto t ; ____ ____s5 : a := 1; b := 0 ; c := 0 ; d := 0 ; bo := true ; goto t; ____ ____t: MD(a, b, c, d, re, ri, bo);tryk(|+d.ddddddtrykml(3) , d , trykml(3) , re , trykml(3) , ri );10 +dd|, trykvr , a , trykml(3) , b , trykml (3) , c , < >n := n + 1 ; goto S[n]; ____end program; ___