When I was studying for the graduate school entrance exam, I found the concept of "** conformal mapping **" in an electromagnetic textbook. Apparently, it was introduced to solve Laplace's equation of electric potential, but I am not as good at understanding it with the formula as sweet omelet, so I decided to ask Python to teach me. Since it is a heppokomaru in all of math, physics, and Python, please look at it with warm eyes like Dora who sees a baby dinosaur.
First of all, this knowledge was suspicious, so I asked wiki. Complex analysis (wikipedia page) He is famous for talking in the streets, but I hear that he does not get the point. I'm not really sure. I should have learned it
To describe my poor knowledge, a complex function is a field in which points on a two-dimensional plane are represented using ** complex numbers **. I think.
"If you just specify a point on a two-dimensional plane, you can use a vector, but a complex function has the advantage that you can specify one point on the plane by giving one complex number. Instead, like a vector, to three dimensions. I feel like something like "I can't expand it" was written in a book I read a long time ago.
The table of contents is "What is a complex function?", But even if I speak my knowledge poorly, it may be misleading, so I will end here.
Since the explanation of the complex function was texto, isn't it a conformal map anyway? Those who thought. It's pretty sharp.
Can you understand conformal mapping without understanding the complex function itself? What is the equiangular angle and how many maps are there? In the first place, the word mapping itself is not common. Hiroyuki also said.
Let's return to the main subject with this area. I think a map is like a machine that does something and returns it when given a value. If you give shochu to the soda server, chu-hi will be returned, and if you give whiskey, highball will be returned. If you don't give anything, soda will be returned. A map is like this soda server. If you do math with a little chord
x=np.array([1,2,3])
y=np.array([1,1,1])
plt.scatter(x,y)
plt.show()
If you put this uninteresting point on the soda server
def soda_server(x):
return x**2
x=np.array([1,2,3])
plt.scatter(x,f(x))
plt.show()
You can see that a point based on a certain law is returned for one point. This is what a map is.
What is isometric? ・ ・ ・ ・ ・ ・ ・ It is written in more detail at the following site.
I explain it 1e10 times more in detail than I do, so please refer to it.
Let's do more. Suppose you take a complex number and run it on a soda server. Let's prepare some soda servers first
Well then ** Introducing the crazy members! !! !! ** ** ** Good evening from the world of trigonometric functions What up! !! !! !! ** ** sin!!!
def sin(z):
return np.sin(z)
** If it's square, leave it to me! !! ** ** z2!!!
def z2(z):
return z*z
** Something that often appears in complex function textbook examples! !! ** ** h!!!
def h(z):
return (z - 1j)/(z + 1j)
Now, I'm wondering how to cook with these guys ...
First, prepare a set of x and y.
import matplotlib.pyplot as plt
import numpy as np
s = 3
x = np.linspace(-s,s,100)
y = np.linspace(-s,s,100)
Cut the mesh
X,Y=np.meshgrid(x,y)
X=X.flatten()
Y=Y.flatten()
Let's see what it looks like
There are many points. that's all
How do these things change when you pass it through a soda server?
Z=np.zeros([Y.shape[0]],dtype=complex)
for i in range(Y.shape[0]):
x=X[i]
y=Y[i]
z=sin(x+1j*y)
Z[i]=z
plt.scatter(Z.real,Z.imag,color="red",s=0.8)
Something has spread.
Next
Z=np.zeros([Y.shape[0]],dtype=complex)
for i in range(Y.shape[0]):
x=X[i]
y=Y[i]
z=z2(x+1j*y)
Z[i]=z
plt.scatter(Z.real,Z.imag,color="black",s=0.8)
plt.show()
I wanted to make it look like a lemon, but it was yellow, but it was hard to see, so I made it black.
The dots moved when they were mapped. I had to explain with lines to explain the isometric, but I couldn't understand the code of the link so I tried to rewrite it with points and lost the essence. Image conversion by conformal mapping-Schwarz-Christoffel conversion-part1
Finally, thank you for reading this far. If it is Youtube, it seems that there are many low ratings, but I will update it frequently from now on. Please see again if you like.
Recommended Posts