File:Daffodil lemma proof visualisation.png

Summary

Description
English: First five terms of the power series expansion of for as steps in a walk, with stride length and direction of step . This is used to visualise the proof of the Daffodil Lemma.
Date
Source Own work
Author Dom walden
PNG development
InfoField
Source code
InfoField

Python code

import matplotlib.pyplot as plt
import numpy as np

def data(z, theta):
    gf = np.array([z**2, z**7, z**12, z**22, 2*z**32, z**42])
    gf_acc = np.array([0, z**2, z**2 + z**7, z**2 + z**7 + z**12, z**2 + z**7 + z**12 + z**22, z**2 + z**7 + z**12 + z**22 + 2*z**32])
    x = np.real(gf_acc)
    y = np.imag(gf_acc)
    u = np.real(gf)
    v = np.imag(gf)
    return x, y, u, v

fig, ax = plt.subplots()

theta = 0/5 * 2 * np.pi
z = 0.9 * np.exp(1j * theta)
x, y, u, v = data(z, theta)
ax.quiver(x, y, u, v, angles='xy', scale=4, label='$\\theta = 0$')

theta = 1/5 * 2 * np.pi
z = 0.9 * np.exp(1j * theta)
x, y, u, v = data(z, theta)
ax.quiver(x, y, u, v, color='blue', angles='xy', scale=4, label='$\\theta = \\frac{2\\pi}{5}$')

theta = 1/3 * 2 * np.pi
z = 0.9 * np.exp(1j * theta)
x, y, u, v = data(z, theta)
ax.quiver(x, y, u, v, color='red', angles='xy', scale=4, label='$\\theta = \\frac{2\\pi}{3}$')

circle = plt.Circle((0, 0), 1.757521632206236, fill=False)
ax.add_patch(circle)

ax.set(xlim=(-2, 2), ylim=(-2, 2))
ax.legend()

ax.set_aspect('equal', adjustable='box')
plt.tight_layout()
plt.savefig("daffodil_lemma_proof_visualisation.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.
Category:CC-BY-SA-4.0#Daffodil%20lemma%20proof%20visualisation.pngCategory:Self-published work
Category:Complex analysis Category:Combinatorics
Category:CC-BY-SA-4.0 Category:Combinatorics Category:Complex analysis Category:PNG created with Matplotlib code Category:Self-published work