Here, `f` is the function whose root should be found, and `df` is its derivative (i.e. Jacobian). `initial` is an initial guess, and should return the first iterate for which the norm of the function value is smaller than some fixed bound.
1. Plot the function using the `vis.py` script from the source repository.
2. Try to find the global minimum of the function by solving the equation
$$\nabla f(x, y) = 0$$
using Newton's method from problem 1.
Since the function oscillates very quickly and therefore has multiple local extrema, you should solve the equation for a sufficiently large number of initial values. Use a grid of $10 \times 10$ points in the square $(-0.5,\, 0.5)^2 \subset \mathbb{R}^2$ and run Newton's method on each of these points.
3. It may also be useful to try to refine the set of initial points until some heuristic criterion is fulfilled. Try to formulate such a criterion.
For reference, the global minimum is -3.306868647.
The function, its gradient and is Hessian are are implemented by the following Haskell functions:
Here, `f` is the function whose root should be found, and `df` is its derivative (i.e. Jacobian). `initial` is an initial guess, and should return the first iterate for which the norm of the function value is smaller than some fixed bound.
1. Plot the function using the `vis.py` script from the source repository.
2. Try to find the global minimum of the function by solving the equation
$$\nabla f(x, y) = 0$$
using Newton's method from problem 1.
Since the function oscillates very quickly and therefore has multiple local extrema, you should solve the equation for a sufficiently large number of initial values. Use a grid of $10 \times 10$ points in the square $(-0.5,\, 0.5)^2 \subset \mathbb{R}^2$ and run Newton's method on each of these points.
3. It may also be useful to try to refine the set of initial points until some heuristic criterion is fulfilled. Try to formulate such a criterion.
For reference, the global minimum is -3.306868647.
The function, its gradient and is Hessian are are implemented by the following Haskell functions: