File:Stolz sector plot.svg

Uploaded by Cosmia Nebula
Upload date 2023-08-04T03:33:47Z
MIME type image/svg+xml
Dimensions 900 × 900 px
File size 117.9 KB

Summary

Description
English: 20 Stolz sectors for M = 1.01 to 10.

Python

import numpy as np
import matplotlib.pyplot as plt

M_values = np.linspace(1.01, 10, 20)

fig, ax = plt.subplots(1, 1, figsize=(10, 10))

for M in M_values:
    x = np.linspace((1-M)/(1+M)+1e-6, 1-1e-6, 1000)

    y = -(M**4 * (x**2 - 1) - 2 * M**2 * ((x - 1) * x + 1) + 2 * np.sqrt(M**4 * (-2 * M**2 * (x - 1) + 2 * x - 1)) + (x - 1)**2)/(M**2 - 1)**2
    y = np.sqrt(y)
    ax.plot(x, y, color='blue', alpha=0.5)
    ax.plot(x, -y, color='blue', alpha=0.5)
    xmin = 0.4
    ax.plot([xmin, 1], [(x-1) * np.tan(np.arccos(1/M)) for x in [xmin, 1]], 'r-', alpha=0.2)
    ax.plot([xmin, 1], [-(x-1) * np.tan(np.arccos(1/M)) for x in [xmin, 1]], 'r-', alpha=0.2)

plt.gca().add_patch(plt.Circle((0, 0), 1, fill=False))

plt.xlim(-1.01,1.01)
plt.ylim(-1.01,1.01)
plt.show()
plt.savefig('plot.svg', format='svg')

Date
Source Own work
Author Cosmia Nebula

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

3 August 2023

image/svg+xml

Category:All media needing categories as of 2023 Category:CC-BY-SA-4.0 Category:Created with Matplotlib Category:Media needing categories as of 4 August 2023 Category:Self-published work