Skip to content

Instantly share code, notes, and snippets.

@akira093
Created September 17, 2012 17:04
Show Gist options
  • Save akira093/3738512 to your computer and use it in GitHub Desktop.
Save akira093/3738512 to your computer and use it in GitHub Desktop.
import scipy
import pylab
def f(x):
return x**3
x = pylab.arange(0,10,.01)
y = scipy.derivative(f,x,n=2)
pylab.plot(x,y)
pylab.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment