title: Find minimum and maximum values of a function
body: <p>I have a function and I would like to find its maximum and minimum values. My function is this:</p>
  
  <pre><code>def function(x, y):
      exp = (math.pow(x, 2) + math.pow(y, 2)) * -1
      return math.exp(exp) * math.cos(x * y) * math.sin(x * y)
  </code></pre>
  
  <p>I have an interval for x [-1, 1] and y [-1, 1]. I would like to find a way, limited to this interval, to discover the max and min values of this function.</p>