This is a file from the Wikimedia Commons

File:Integration path in complex plane crossing saddle-point.png

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Original file(834 × 660 pixels, file size: 315 KB, MIME type: image/png)

Summary

Description
English: A modular surface (blue) with an integration path (red and green) which crosses a saddle-point. The modular surface describes . The red part of the integration path is the part which crosses the saddle-point. The green part is the "tail".
Date
Source Own work
Author Dom walden
PNG development
InfoField
 
This plot was created with Matplotlib.
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/4, np.pi/4, 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)

# Plot through saddle-point
ax.plot(x, y, z, 'red')

theta = np.linspace(np.pi - np.pi*3/4, np.pi + np.pi*3/4, 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)

# Plot the "tail"
ax.plot(x, y, z, 'green')

ax.legend()

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.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

28 May 2023

image/png

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current07:18, 28 May 2023Thumbnail for version as of 07:18, 28 May 2023834 × 660 (315 KB)Dom waldenUploaded own work with UploadWizard

The following page uses this file:

Metadata