Skip to content

Instantly share code, notes, and snippets.

@normalhuman
Created February 12, 2016 04:26
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 normalhuman/2b3778eb4660a7cfa258 to your computer and use it in GitHub Desktop.
Save normalhuman/2b3778eb4660a7cfa258 to your computer and use it in GitHub Desktop.
import scipy.optimize as optimization
def u(x, a):
return numerical_integral(lambda t: x*a+t, 0, 1)[0]
print optimization.curve_fit(u, [1,2,3], [1,3,2], [1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment