Jump to content

File:Illustration of Daffodil Lemma from Analytic Combinatorics pp 267.png

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikibooks, open books for an open world

Original file (1,596 × 810 pixels, file size: 135 KB, MIME type: image/png)

Summary

Description
English: Polar plot of for . This illustrates the 'Daffodil lemma', relating the periodic fluctuations of the coefficients of a generating function with the location of its dominant singularities. Reproduction of a graph from Flajolet, Philippe; Sedgewick, Robert (2009) Analytic Combinatorics, Cambridge University Press pp. 390.
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
import numpy as np

def f(z):
    return z**7 * np.e**(z**25) + z**2 / (1 - z**10)

fig, ax = plt.subplots(subplot_kw={'projection': 'polar'})

theta = np.arange(0, 2 * np.pi, 0.01)
ax.plot(theta, abs(f(0.4*np.e**(1j*theta))), label='0.4')
ax.plot(theta, abs(f(0.5*np.e**(1j*theta))), label='0.5')
ax.plot(theta, abs(f(0.6*np.e**(1j*theta))), label='0.6')
ax.plot(theta, abs(f(0.7*np.e**(1j*theta))), label='0.7')
ax.plot(theta, abs(f(0.8*np.e**(1j*theta))), label='0.8')
ax.plot(theta, abs(f(0.9*np.e**(1j*theta))), label='0.9')

ax.set_rmax(2)
ax.set_rticks([0, 0.5, 1, 1.5, 2])
ax.set_rlabel_position(0)

ax.set_xticks([0, np.pi/2, np.pi, 3*np.pi/2], labels=['', '', '', ''])

ax.grid(True)

ax.legend()
ax.set_title('Polar plot of $|f(re^{i\\theta})|$ for $f(z) = z^7 e^{z^{25} } + \\frac{z^2}{(1 - z^{10})}$, $r = 0.4..0.9$', va='bottom')
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

Polar plot illustrating the Daffodil Lemma. Reproduction of a graph from Flajolet and Sedgewick "Analytic Combinatorics" pp. 267.

Items portrayed in this file

depicts

9 March 2025

File history

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

Date/TimeThumbnailDimensionsUserComment
current11:27, 9 March 2025Thumbnail for version as of 11:27, 9 March 20251,596 × 810 (135 KB)Dom waldenUploaded own work with UploadWizard

Metadata