File:Contour graph of generating function for surjections.png

Uploaded by Dom walden
Upload date 2025-06-17T19:17:08Z
MIME type image/png
Dimensions 640 × 480 px
File size 13.2 KB

Summary

Description
English: The generating function for surjections (2ez)1, for complex z. The axes are the real and imaginary part of z and the colour saturation is the modulus of the function.
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

def f(z):
    return 1 / (2 - np.exp(z))

X = np.linspace(-20, 20, 100)
Y = np.linspace(-20, 20, 100)
X, Y = np.meshgrid(X, Y)
Z = abs(f(X+Y*1j))
levels = np.linspace(-1, Z.max(), 20)

fig, ax = plt.subplots()
ax.contourf(X, Y, Z, levels=levels, cmap=cm.Blues)

ax.set_xlabel('Re')
ax.set_ylabel('Im')

plt.tight_layout()
plt.savefig("surjections_contour.png")

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

Contour graph of the generating function for surjections when treated as a complex function

Items portrayed in this file

depicts

17 May 2025

13,476 byte

480 pixel

640 pixel

image/png

fdf1e91a8266ee9275eb1ea7dcbdce8a73327478

Category:CC-BY-SA-4.0 Category:Combinatorics Category:Complex analysis Category:PNG created with Matplotlib code Category:Self-published work