Created
March 17, 2018 00:04
-
-
Save guillaume-chevalier/363b58356614b87da2baba8564a19459 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
import math | |
b = 8 | |
a = 2**b | |
x = np.array([[math.cos(0.5**i*x*2*math.pi) for x in range(0, a)] for i in range(1, b+1)]) | |
# Looks like a progression of binary numbers, but with float values. | |
plt.imshow(x) | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As seen here: https://twitter.com/guillaume_che/status/974801468887838720