How to apply quadgk in solving this integral?
Mostrar comentarios más antiguos

Here, z is a complex variable such that z belongs to unit disk,i.e.,
.
is an analytic function.
is also an analytic function such that
.
How can we apply Gauss konrod quadrature on a function having two variables like above? i'm attaching a hint if you understand.

i think they're making a mesh for values of z. But i am not able to understand how. Also, they have plotted the images of unit disk under the maps
and
using quadgk in the following example. if someone could help me with the code to draw like these:

Please help me understand how they did this and help me with the code.
11 comentarios
Star Strider
el 2 de Sept. de 2023
Proviide the appropriate code forφ and ω and we will see what we can do.
simran
el 2 de Sept. de 2023
Star Strider
el 2 de Sept. de 2023
We will wait for you to code those and post the code.
Star Strider
el 2 de Sept. de 2023
We’ll help you with the integration (since that may not be straightforward, especially if waypoints are involved, the functions are complex so they requires complex integration techniques, and other complicating factors), however you need to code the functions you want to integrate.
So code them, try the integration, and if you have problems, describe them with the code and any error messages that are thrown in the process. If there are no error messages and the code didn’t do what you wanted, or did something you didn’t want, describe that as well.
And of course, show all the code you use, and attach any data files necessary to run it, and how you use the variables read from them.
simran
el 2 de Sept. de 2023
Example for phi(z) = -cos(z), omega(z) = z^4:
z = 0.9*(1 + 2*1i)/sqrt(5);
phidot = @(t) sin(z*t);
omega = @(t) (z*t).^4;
fun = @(t) phidot(t)./(1-omega(t)) * z;
f = 2*real(integral(fun,0,1)) - (conj(-cos(z)))
Star Strider
el 2 de Sept. de 2023
It looks like hypergeom could be the correct function, so start there with the Symbolic Math Toolbox to create φ and ω. You may also need to use the diff function. If
is the complex conjugate, there are functions for that as well.
Integrating it numerically will likely require that you then use the matlabFunction function with your symbolically-coded integrand to create an anonymous function version of it that you can then use with any of the numerical integration functions to do the actual integration (assuming that you cannot integrate it symbolically).
Just to provide a brief update, I believe these spider-web-like plots are referred to as 'Conformal Mapping,' as mentioned on Wolfram MathWorld. The screenshots are excerpts from the article 'Harmonic Shears and Numerical Conformal Mappings,' authored by Tri Quach and published in the journal Filomat 31:8 (2017), pages 2231–2241.
OP @simran is interested in learning how to numerically plot these Conformal Maps using the Gauss-Kronrod quadrature method, which is also available as a built-in function in MATLAB called 'quadgk()'. Approximately 10 days ago, @Angelo Yeo plotted something similar on this page:
https://www.mathworks.com/matlabcentral/answers/2012102-how-do-i-plot-this-in-matlab?s_tid=srchtitle
n_rays = 16 + 1;
n_circles = 9 + 1;
n_samples = 200;
rays = linspace(0, 1, n_samples)' * exp(1j*linspace(0, 2*pi, n_rays));
interior_circles = linspace(0, 1, n_circles)' * (cos(linspace(0, 2*pi, n_samples)) + 1j * sin(linspace(0, 2*pi, n_samples)));
interior_circles = transpose(interior_circles);
%% plotting
figure;
subplot(1,2,1);
for i_rays = 1:n_rays
plot(real(rays(:,i_rays)), imag(rays(:,i_rays)),'Color',[88, 140, 102]/ 255)
hold on;
end
for i_circle = 1:n_circles
plot(real(interior_circles(:,i_circle)), imag(interior_circles(:,i_circle)),'Color','r')
end
axis square
xlim([-2, 2])
ylim([-2, 2])
grid on;
subplot(1,2,2);
f = @(z) z./(1-z); % complex function to apply
for i_rays = 1:n_rays
plot(real(f(rays(:,i_rays))), imag(f(rays(:,i_rays))),'Color',[88, 140, 102]/ 255)
hold on;
end
for i_circle = 1:n_circles
plot(real(f(interior_circles(:,i_circle))), imag(f(interior_circles(:,i_circle))),'Color','r')
end
axis square
xlim([-2, 2])
ylim([-2, 2])
grid on;
Sam Chak
el 2 de Sept. de 2023
According to Tri Quach, the Schwarz–Christoffel Toolbox (developed by Prof. Toby Driscoll) is used to provide conformal maps.
Respuestas (0)
Categorías
Más información sobre Numerical Integration and Differentiation en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


