Help! On Monte Carlo Integration


qianl
07-21-2006, 02:19 AM
:confused:
Hi, respected experts,

When I use the
subroutine vegas
in Numerical Recipes in Fortran, no matter what my function to be integrated is, in
the circulation 'DO 26', dt(j) always equal to 0, then r(i) becomes NAN, then the
programme refuses to work.

By the way, can k be set to 0 in subroutine rebin?

Than you very much!

Monte Python
01-11-2007, 10:52 AM
Hi, I never used Fortran, but these guys offer <a href="http://www.inrad.co.uk/home.php?page=newcourses">MCNP and other monte carlo training courses</a>. Maybe they can help you.