10.07.2015 Views

THE EGS5 CODE SYSTEM

THE EGS5 CODE SYSTEM

THE EGS5 CODE SYSTEM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6 7 8 9 1011 12theta = wid*float(isub - 1) + wss*float(iss - 1)cthet = PI5D2 - thetasinthe = sin(theta)costhe = sin(cthet)sint = sin(theta)cost = cos(theta)asd = abs(sinthe - sint)acd = abs(costhe - cost)adev = max(adev,asd,acd)nosint.ne.0.yesrdev = max(rdev,asd/abs(sint))nocost.ne.0.yesrdev = max(rdev,acd/abs(cost))s2c2 = sinthe**2 + costhe**2s2c2mn = min(s2c2mn,s2c2)s2c2mx = max(s2c2mx,s2c2)isub.lt.11noyeswrite(6,1340) theta,sinthe,sint,costhe,costwrite(6,1350) mxsinc_loc,nsinsswrite(6,1360) adev,rdev,s2c2mn,s2c2mxadev = 0.rdev = 0.s2c2mn = 10.s2c2mx = 0.irn=1irn=irn+1irn >nrnanoyescallrandomset(rnnow)theta = rnnow*PI5D2cthet = PI5D2 - thetasinthe = sin(theta)costhe = sin(cthet)sint = sin(theta)cost = cos(theta)asd = abs(sinthe - sint)acd = abs(costhe - cost)adev = max(adev,asd,acd)13 14 15 16 17240

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!