Skip to content

Instantly share code, notes, and snippets.

@samidarko
Created August 28, 2016 09:14
Show Gist options
  • Save samidarko/79eff6f29efcb6d7a0cfd1c1adc2bef8 to your computer and use it in GitHub Desktop.
Save samidarko/79eff6f29efcb6d7a0cfd1c1adc2bef8 to your computer and use it in GitHub Desktop.
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