Hello I'm trying to integrate the following function in MATLAB
but it's returing the wrong answer when I try something like
This is what I have tried so far:
fun = @(t,x,y) exp(1i.*(t.^4+x.*t.^2+y.*t));
P = @(x,y) integral(@(t)fun(t,x,y),-Inf,Inf);
P(1,1)
Any help appreciated and many thanks in advance

댓글 수: 3

madhan ravi
madhan ravi 2019년 2월 14일
what’s the exact answer?
Torsten
Torsten 2019년 2월 15일
exp(i*(t^4+x*t^2+y*t)) does not tend to 0 as | t| -> Inf. Thus your integral does not exist (at least in the usual sense).
Michael Devereux
Michael Devereux 2019년 2월 15일
According to WolframAlpha the answer is 1.20759 + 0.601534 i
Keep in mind it's a complex exponential so there is a finite solution. This is know as the Pearcey Integral. I am more concerned that I have entered the formula incorrectly than the actual integral itself. Is this the correct way to approach the problem.

댓글을 달려면 로그인하십시오.

 채택된 답변

Torsten
Torsten 2019년 2월 15일

0 개 추천

format long
fun = @(t,x,y) exp(-t.^4 + 1i.*y.*t - x.*t.^2 + 1i*pi*0.125);
P = @(x,y) integral(@(t)fun(t,x*exp(-1i*pi*0.25),y*exp(1i*pi*0.125)),-Inf,Inf);
P(1,1)
Reference:
https://arxiv.org/pdf/1601.03615.pdf

추가 답변 (1개)

Abhishek Hullur
Abhishek Hullur 2021년 8월 8일

0 개 추천

. Evaluate around the rectangle with vertices

카테고리

도움말 센터File Exchange에서 Programming에 대해 자세히 알아보기

제품

릴리스

R2018b

태그

질문:

2019년 2월 14일

답변:

2021년 8월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by