Integer sines

The following graph plots sin(1), sin(2), sin(3), etc. It is based on a graph I found on page 42 of Analysis by its History by Hairer and Wainer.

Here’s the Python code that produced the plot.

    import matplotlib.pyplot as plt
    from numpy import arange, sin
    
    x = arange(1, 3000)
    plt.scatter(x, sin(x), s=1)
    plt.xscale("log")
    plt.savefig("int_sin.png")

2 thoughts on “Integer sines

Leave a Reply

Your email address will not be published. Required fields are marked *