Integral Problem

I want to evaluate the integral of this function :
(cos(t^2)*sin(t)^2)^(1/2)
over the period -15*pi:50*pi
I am using these :
f=@(t) (cos(t.^2).*sin(t).^2).^(1/2);
quad(f,-15*pi,50*pi)
But i am getting warning:
Warning: Maximum function count exceeded; singularity likely.
> In quad at 110
In PPEL at 6
ans =
35.8252 +54.5673i
Most likely there is something stupid that i don't know about the theoretical part of the math :)

답변 (2개)

Honglei Chen
Honglei Chen 2012년 4월 3일

0 개 추천

The function f is complex valued so this may be tricky. The following page may be helpful
Walter Roberson
Walter Roberson 2012년 4월 3일

0 개 추천

cos(t^2) oscillates fairly quickly near 50*pi . You are exceeding the maximum function count because of those fast oscillations.

카테고리

도움말 센터File Exchange에서 Numerical Integration and Differentiation에 대해 자세히 알아보기

질문:

2012년 4월 3일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by