We consider the functions g(x) and f(x) given by the formula: 2² 10 g(x)= -2, f(x)=2e²² (x²(x-1)-1). Batak alde and dat
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
We consider the functions g(x) and f(x) given by the formula: 2² 10 g(x)= -2, f(x)=2e²² (x²(x-1)-1). Batak alde and dat
8) We now aim to write the descent algorithm to find the minimums of these curves. Write a function "descent_algo" which takes as an imput a function h, the derive function (which we previously defined), the initial point zo. the parameter a and e (as defined in tutorial sheet-on week 4). The function should return the table of points a which have been generated after successive iterations. (10 marks) This should look like 'def descent_algo( h, derive, x0, alpha, epsilon):