File:Contour integration showing modular surface and area under contour.png

Summary

Description
English: A modular surface (blue) showing the area under the integration path or contour (green). The modular surface describes .
Date
Source Own work
Author Dom walden
PNG development
InfoField
Source code
InfoField

Python code

import matplotlib.pyplot as plt
from matplotlib import cm
import numpy as np

# Make data
X = np.arange(-4, 4, 0.25)
Y = np.arange(-4, 4, 0.25)
X, Y = np.meshgrid(X, Y)
Z = abs(np.exp(X+Y*1j) / (1 - (X+Y*1j)))

# Plot the surface
fig, ax = plt.subplots(subplot_kw={"projection": "3d"})
ax.plot_wireframe(X, Y, Z, alpha=0.5)

ax.set(xticklabels=[],
       yticklabels=[],
       zticklabels=[])

# Prepare arrays x, y, z
theta = np.linspace(-np.pi, np.pi, 1000)
r = 2
z = abs(np.exp(r * np.exp(1j*theta)) / (1 - r * np.exp(1j*theta)))
x = r * np.sin(theta + np.pi/2)
y = r * np.cos(theta + np.pi/2)

for i in np.linspace(0, max(z), 100):
    ax.plot(x, y, [i if n > i else n for n in z], 'green')

ax.set_xlabel('x')
ax.set_ylabel('y')
ax.set_zlabel('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#Contour%20integration%20showing%20modular%20surface%20and%20area%20under%20contour.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