I want to compute integral(@(v)v^46*exp(-v^2),0,inf). Mathematically, it can be computed. However, when I run in matlab, it gives NaN. Is it a problem due to the precision of the computer? If yes, how can I fix it? I also try of changing inf to a big no, say from 10000,100000,1000000,... the values increase and then drop to a very small no close to 0.
In the extreme case, I need to compute integral(@(v)(v-a)^200*exp(-v^2),0,inf), so I admire any correction based on the last integral.