Skip to content

Instantly share code, notes, and snippets.

@bechampion
Created June 27, 2017 07:23
Show Gist options
  • Save bechampion/139ffeba765da41cd3fef24a9b7892df to your computer and use it in GitHub Desktop.
Save bechampion/139ffeba765da41cd3fef24a9b7892df to your computer and use it in GitHub Desktop.
cuve2
import numpy as np
import pylab as pl
def f(x):
return x**3 -3*x + 4
Y, X = np.mgrid[-10:10:100j, -10:10:100j]
pl.contour(X, Y, Y**2 - f(X), levels=[0])
pl.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment