when I enter quaduexpucos14u2sinu205 I get 04064 which is tw
when I enter quad(@(u)exp(-(u+cos(14*u)).^2).*sin(u).^2,0,5) I get 0.4064 which is twice what I believe the answer should be (0.2559)
Solution
quad(@(u)exp(-(u+cos(14*u)).^2).*sin(u).^2,0,5)
your syntax is totally correct and your answer is also correct
Correct answer is = 0.4064
--
I checked with Integral calculator (walfram alpha)
