Chalnoth
Science Advisor
- 6,197
- 449
Yes, that integral must be evaluated numerically. If you program the numerical integration routine yourself, I would highly recommend Numerical Recipes for this sort of work:humanist rho said:I got stuck in the evaluation of integral in the luminosity distance equation...
http://www.nr.com/
(the latest versions need to be purchased, or borrowed from somebody who has the book at your school, but you can read the obsolete versions for free online, after downloading a plugin for Adobe Reader)
They have sample codes in Fortran and C.
Of course, you could also just use a numerical integration routine from somewhere else. I don't know what software you are using.
