Skip to content

Instantly share code, notes, and snippets.

@ForteXX-2020
Last active January 13, 2021 09:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ForteXX-2020/9f35692d6f3bf6680f57ae9ae661af1f to your computer and use it in GitHub Desktop.
Save ForteXX-2020/9f35692d6f3bf6680f57ae9ae661af1f to your computer and use it in GitHub Desktop.
0003_create_testdata
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