Created
August 28, 2016 09:14
-
-
Save samidarko/79eff6f29efcb6d7a0cfd1c1adc2bef8 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
| from math import log | |
| from matplotlib import pyplot as plt | |
| import numpy as np | |
| def fn_a(n): | |
| return 64*n*log(n) | |
| def fn_b(n): | |
| return 8*n*n | |
| x = np.arange(1, 100) | |
| plt.plot(x, [fn_a(y) for y in x]) | |
| plt.plot(x, [fn_b(y) for y in x]) | |
| plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment