Integrals that cannot be evaluated in closed form sometimes can be evaluated approximately by using a series representation for the integrand. For example, the following integral is used for some probability calculations:
I found a solution to this question, but I’m having trouble inputting it into matlab. Can someone explain it further for me (what suppose to be in the script file, the command window, what’s missing from the solution etc.), or if you have a different way to solve this question please do share.
The solution I found is: