Skip to content

Instantly share code, notes, and snippets.

@tilast
Created October 1, 2014 21:26
Show Gist options
  • Save tilast/4b7d09a3448854367368 to your computer and use it in GitHub Desktop.
Save tilast/4b7d09a3448854367368 to your computer and use it in GitHub Desktop.
variant12.append( Sample( lambda x: (x[0] - x[1])**2 + ((x[0] + x[1] - 10)**2) / 9.0, [0, 1], [[2 + 2.0/9.0, -2 + 2.0/9.0], [-2 + 2.0/9.0, 2 + 2.0/9.0]] ) )
variant12.append( Sample( lambda x: 100*(x[1] - x[0]**2)**2 + (1 - x[0])**2, [-1.2, 1], [[1330, 480], [480, 200]] ) )
variant12.append( Sample( lambda x: (cos(x[1]) + x[0] - 1.5)**2 + (2*x[1] - sin(x[0] - 0.5) - 1)**2, [-1.2, 1], [[-191693.0/100000.0, -29189.0/25000.0], [-29189.0/25000.0, 11 + 7499.0/10000.0]] ) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment