|
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: 972 (0x3cc) Description: Bits:30005574 MD(a,b,c,d,re,ri,bo) Types: 8-hole paper tape Notes: Gier Text
procedure MD(a, b, c, d, re, ri, bo); _________value a, b, c, d ; _____real a, b, c, d, re, ri ; ____boolean bo ; _______comment Proceduren MD multiplicerer eller dividerer _______(afhængig af den boole-ske variable bo) komplekse tal:bo true : re + i ⨯ ri := (a+i⨯b)/(c+i⨯d). ____bo false: re + i ⨯ ri := (a+i⨯b)⨯(c+i⨯d); _____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 MD er testet paa DASK, ___23.8.62. Søren Christiansen;[ s t o p ]