Error using quad for nummerical integration
조회 수: 2(최근 30일)
표시 이전 댓글
I am unable to understand why i cant use the quad function for nummerical integration..
tk = 1.5;
Assymptotisk=@(x) sqrt(2/pi)*1/sqrt(x)*exp(-x);
vc= quad(Assymptotisk,tk,inf);
The above code reproduces the problem in my main program..
Thanks in advance!
댓글 수: 0
채택된 답변
Pedro Villena
2012년 10월 29일
this equation has a singularity to Inf
tk = 1.5;
Assymptotisk=@(x) sqrt(2/pi).*exp(-x)./sqrt(x);
vc= quad(Assymptotisk,tk,1e18);
댓글 수: 2
Andrei Bobrov
2012년 10월 29일
quadgk(Assymptotisk,tk,inf);
integral(Assymptotisk,tk,inf);% with MATLAB R2012a
추가 답변(0개)
참고 항목
범주
Find more on Loops and Conditional Statements in Help Center and File Exchange
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!