File:Graph of argument of square root of complex variable -pi to pi.png

Summary

Description
English: Graph of complex square root. x and y axes are real and imaginary parts of the complex variable and the z axis is the argument of the square root. The argument of the complex variable goes from to . This shows the discontinuity along the negative x axis.
Date
Source Own work
Author Dom walden
PNG development
InfoField
Source code
InfoField

Python code

import numpy as np
import matplotlib.pyplot as plt

ax = plt.figure().add_subplot(projection='3d')

alternate = 'blue'
for r in np.linspace(0, 2, 50):
    theta = np.linspace(-np.pi, np.pi, 1000)
    z = np.angle(np.sqrt(r * np.exp(theta * 1j)))
    x = r * np.cos(theta)
    y = r * np.sin(theta)
    ax.plot(x, y, z, alternate, alpha=0.7)
    alternate = 'black' if alternate == 'blue' else 'blue'

ax.set_xlabel('Re(z)')
ax.set_ylabel('Im(z)')
plt.rcParams['text.usetex'] = True
ax.set_zlabel('$arg(\sqrt{z})$')
plt.show()

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Category:CC-BY-SA-4.0#Graph%20of%20argument%20of%20square%20root%20of%20complex%20variable%20-pi%20to%20pi.pngCategory:Self-published work
Category:Mathematical analysis
Category:CC-BY-SA-4.0 Category:Mathematical analysis Category:PNG created with Matplotlib code Category:Self-published work