Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. call random_seed ()
  2. do j=1,Nhist
  3. x=0
  4. mu=1
  5. 10 j=j+1
  6. call random_number(gamma)
  7. la=-((1/sigt)*Log(gamma))
  8. x=x+mu*lambda
  9. if (x>d) then
  10. Nout=Nout+1
  11. go to 10
  12. else
  13. Nref=Nref+1
  14. go to 10
  15.  
  16. print *, Nref, Nout
  17.  
  18. else
  19. call random_number(gamma)
  20. if (gamma<(sigc/sigt)) then
  21. Nab=Nab+1
  22. go to 10
  23. else call random_number(gamma)
  24. mu=2*gamma- end if
  25. end do
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement