Article 66KFM Sine of a circle

Sine of a circle

by
John
from John D. Cook on (#66KFM)

What does it look like when you take the sine of a circle? Not the angle of points on a circle, but the circle itself as a set of points in the complex plane?

Here's a plot for the sine of circles of radius r centered at the origin, 0 < r < /2.

sine_circle1.png

Here's the same plot but for /2 < r < .

sine_circle2.png

Now let's see what happens when we shift the center of the circle over by 1, first for 0 < r < /2.

sine_circle3.png

And now for /2 < r < .

sine_circle4.png

Here's the Python code that produced the first plot; the code for the other plots is very similar.

 import matplotlib.pyplot as plt from numpy import pi, exp, sin, linspace t = linspace(0, 2*pi, 500) for r in linspace(0.1, pi/2, 17): z = r*exp(1j*t) w = sin(z) plt.plot(w.real, w.imag, 'b') plt.gca().set_aspect("equal") plt.title("$\sin(r\exp(it))$, $0 Related posts
The post Sine of a circle first appeared on John D. Cook.
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