How to write Pearcey functions?
52 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
0 Commenti
Risposte (2)
Ameer Hamza
il 26 Ott 2020
Modificato: Ameer Hamza
il 26 Ott 2020
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 Commenti
Star Strider
il 26 Ott 2020
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 Commenti
Vedere anche
Categorie
Scopri di più su Installation in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!