Skip to content

Instantly share code, notes, and snippets.

@ahmadyan
Created November 12, 2018 04:15
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 ahmadyan/48f6c3b3158a7120e26ed5530f51069b to your computer and use it in GitHub Desktop.
Save ahmadyan/48f6c3b3158a7120e26ed5530f51069b to your computer and use it in GitHub Desktop.
Rosenbrock function in Python
def rosenbrock(x):
return 100*(x[1] - x[0]**2)**2 + (1 - x[0])**2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment