Created
January 15, 2018 13:43
-
-
Save telliott99/74bb7a47adb692b60fcbf00dd9829901 to your computer and use it in GitHub Desktop.
This file contains 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 matplotlib import pyplot as plt | |
import numpy as np | |
p = 81 | |
q = 219 | |
def f(x): | |
return x**(p-1)*(1-x)**(q-1) | |
X = np.linspace(0,1,1000) | |
Y = [f(x)*1e90 for x in X] | |
m = max(Y) | |
Y = [y*1.0/m for y in Y] | |
plt.scatter(X,Y,s=5,c='red') | |
plt.savefig('example.png') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment