How to write Pearcey functions?
조회 수: 53 (최근 30일)
이전 댓글 표시
답변 (2개)
Ameer Hamza
2020년 10월 26일
편집: Ameer Hamza
2020년 10월 26일
You can use integral() function
Pe = @(x, y) integral(@(s) exp(1i*(s.^4 + s.*x + s.^2.*y)), -inf, inf); % first equation
Pe = @(x) integral(@(s) exp(1i*(s.^4 + s.^2.*x)), -inf, inf); % second equation
댓글 수: 0
Star Strider
2020년 10월 26일
I would code them as:
Pe1 = @(x) integral(@(s) exp(1i*(s.^4 + s.^2.*x)), -Inf, Inf, 'ArrayValued',1);
Pe2 = @(x,y) integral(@(s) exp(1i*(s.^4 + s.*x + s.^2.*y)), -Inf, Inf, 'ArrayValued',1);
These run without error (however not without Warnings, since I am not certain what the arguments should be, and those I tested it with threw Warnings).
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Installation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!