I have to do a lot of integrals of the form attached in the notebook. 90% of the time it works fine, but occasionally, the integral seems unable to complete without crashing the kernel. Then all of the text in the notebook turns dark blue.
The integral will work if I take out the "Assumptions -> r \[Element] Reals" but this is not a good solution for me as I need to do lots of these integrals at once and store the results, so I use a loop.
Does this have something to do with the numerical coefficients in front of the variables? How can I fix this problem?
The integral I am referring to is the final integral. The integral that defines Pcm completes fine all the time.
Attachment: test.nb, URL: ,