|
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: 4376 (0x1118) Description: Bits:30000628 2208 - 11.10.65 Sommerfeld cox (blt) procedure S. Chr. Types: 8-hole paper tape Notes: Gier Text
boolean procedure Sommerfeld cox (pr, pi, gr, gi); _______ _________value pr, pi ; _____real pr, pi, gr, gi ; ____comment This procedure computes the value of _______the Sommerfeld attenuation function: G(p). The parameters are: pr: real part of input p, pi: imaginary part of input p, gr: real part of output G(p), gi: imaginary part of output G(p),Sommerfeld cox: is true when 0 _ arg(p) _ phi/2, ____ < <otherwise it is false; _____if pr < 0 ∨ pi < 0 __then Sommerfeld cox := false ____ _____else ____begin _____real x,y,M; ____Sommerfeld cox := true; ____M := pr∧2 + pi∧2; | |x := sqrt((sqrt(M) + pr)/2);y := if x = 0 then 0 else pi/2/x; __ ____ ____if y > 1.7 - 0.2 ⨯ x ∨ y > 3.9 - x __then ____begin comment Hermite quadrature; _____ _______real p1,p2,p3,p4,p5,p6,n1,n2,n3,n4,n5,n6,a,b,T; ____M := y∧2; |a := b := 0;for T := - x , x do ___ __begin _____p1 := 0.31424 03763 + T ; p2 := 0.94778 83912 + T ; p3 := 1.59768 26352 + T ; p4 := 2.27950 70805 + T ; p5 := 3.02063 70251 + T ; p6 := 3.88972 48979 + T ;n1 := 0.18147 96822 /(p1∧2 + M); |n2 := 0.08291 72776 3 /(p2∧2 + M); |n3 := 0.01642 73320 3 /(p3∧2 + M); |n4 := 0.00124 31244 32 /(p4∧2 + M); |n5 := 0.00002 72908 9347 /(p5∧2 + M); |n6 := 0.00000 00846 24328 41/(p6∧2 + M); |a := a + n1 + n2 + n3 + n4 + n5 + n6; b := - b + p1⨯n1 + p2⨯n2 + p3⨯n3 + p4⨯n4 + p5⨯n5 + p6⨯n6end T; ___gr := 1 - 1.77245 38509⨯(x⨯b + M⨯a); gi := 1.77245 38509⨯(x⨯a - b)⨯yend Hermite quadrature ___else ____begin comment Legendre approximation; _____ _______real p1,p2,p3,n1,n2,t1,t2,T; ____procedure PK(pa,pb,a0,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10); _________value a0,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10 ; _____real pa,pb,a0,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10 ; ____begin _____p3 := a9 + T ⨯ a10 ; p2 := a8 + T ⨯ p3 + M ⨯ a10 ; p1 := a7 + T ⨯ p2 + M ⨯ p3 ; p3 := a6 + T ⨯ p1 + M ⨯ p2 ; p2 := a5 + T ⨯ p3 + M ⨯ p1 ; p1 := a4 + T ⨯ p2 + M ⨯ p3 ; p3 := a3 + T ⨯ p1 + M ⨯ p2 ; p2 := a2 + T ⨯ p3 + M ⨯ p1 ; p1 := (a1 + T ⨯ p2 + M ⨯ p3)/5; pa := a0 + pr⨯ p1 + M ⨯ p2 ; pb := pi⨯ p1end PK; ___T := 0.4⨯pr; M := - 0.04⨯M; PK(t1 ,t2 , 0 , 12096.51250, -8488.78070, 14448.00988, -4495.93759, 3287.20821, -519.3045 , 210.21 , -14.3 , 3.3 , 0 ); PK(n1 ,n2 , 12096.51250, 31832.92763, 39914.35198, 31537.26576, 17481.0636 , 7151.3442 , 2207.205 , 514.8 , 89.1 , 11 , 1 );p3 := 10/(n1∧2 + n2∧2); | |p2 := cos(pi); p1 := sin(pi); T := 1.77245 38509⨯exp(-pr); gr := 1 + T⨯(x⨯p1 - y⨯p2) - p3⨯(n1⨯t1 + n2⨯t2); gi := T⨯(x⨯p2 + y⨯p1) - p3⨯(n1⨯t2 - n2⨯t1)end Legendre approximation ___end 0 _ arg(p) _ phi/2 ___ < <finis Sommerfeld cox;[ e n d ] [ s t o p ]