Ask Your Question
2

How to compute and display a conformal map in Sage

asked 2023-07-08 17:27:45 +0200

fermiona gravatar image

updated 2023-07-08 17:42:09 +0200

I am trying to create conformal maps of complex functions, ie something like this: image description

I have looked over the manuel, but the only thing I can find that is remotely related is the entry on Riemann mappings, which is not what I want. There is an interact that is capable of generating some of the functions I want to display, but it requires entering the functions for x and y manually and would become unmanageable for more complicated functions. Is there a better way to go about this?

Edit: I am using the latest version at time of writing, which is v. 10.0.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-07-09 10:02:46 +0200

achrzesz gravatar image

Cosider the two options:

f(z)=z^2
complex_plot(f, (-3, 3), (-3, 3), plot_points=300, 
    contoured=True, tiled=True, cmap='plasma',aspect_ratio=1)

or

M = Manifold(2, 'M')                  
X.<x,y> = M.chart()                
N = Manifold(2,'N')
U.<u,v> = N.chart()
z=(x+I*y)
def f(z):
    return z^2
F = M.diff_map(N,[f(z).real(),f(z).imag()], name='F')
p1=X.plot(U,mapping=F,number_values={x:20,y:20},
      ranges={x:(-3,3),y:(-3,3)},
      color='grey',thickness=1,label_axes=False) 
p1.show(aspect_ratio=0.6)
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2023-07-08 17:27:45 +0200

Seen: 385 times

Last updated: Jul 09 '23