Last active
January 13, 2021 09:21
-
-
Save ForteXX-2020/9f35692d6f3bf6680f57ae9ae661af1f to your computer and use it in GitHub Desktop.
0003_create_testdata
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 pylab import plt | |
import numpy as np | |
def f(x): | |
return 3 * x ** 3 - 4 * x ** 2 | |
x = np.linspace(-2, 4, 25) | |
y = f(x) | |
plt.figure(figsize=(10, 6)) | |
plt.plot(x, y, 'ro'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment