Article 58JG5 Simple equations whose plot looks like field grass

Simple equations whose plot looks like field grass

by
John
from John D. Cook on (#58JG5)

Math Overflow has an interesting question about unexpected mathematical images. Here's a response from Payam Seraji that was easy to code up.

fieldgrass.png

Here's the code that produced the image.

from numpy import *import matplotlib.pyplot as pltt = linspace(0, 39*pi/2, 1000)x = t*cos(t)**3y = 9*t*sqrt(abs(cos(t))) + t*sin(0.2*t)*cos(4*t)plt.plot(x, y, c="green")plt.axes().set_aspect(0.3)plt.axis('off')

The post Simple equations whose plot looks like field grass first appeared on John D. Cook.

LRsgOSO2GgU
External Content
Source RSS or Atom Feed
Feed Location http://feeds.feedburner.com/TheEndeavour?format=xml
Feed Title John D. Cook
Feed Link https://www.johndcook.com/blog
Reply 0 comments