I am trying to integrate a particular function from 0 to pi. However, when I run it, it displays a warning message, "Integrand is not a numerical at w = 1.5078", where w is the parameter of integration. I have tried for different ranges and the warning message is always displayed for the midpoint of the range. For example: if I try to run it for a range from 0 to pi/2, it shows the same message for w = 0.75.
I am attaching the part of my code that is producing the warning message.
Please give me some suggestions.
Attachment: test.nb, URL: ,