Exercise 3 - Optimization
- Write a program to get maximum value of the functions:
- f(x) = sin(x), domain : [0,pi]
- f(x) = x2 exp( -x ), domain : [0,4]
- f(x,y) = y - x - 2x2 - 2xy - y2, domain_x : [-2,2], domain_y : [1,3]
- Write a program to get minimum value of the functions:
- f(x) = exp(x)/x2, domain : [1/2,5]
- f(x) = x2 - 9, domain : [-2,3]
- f(x,y) = 1 - (x-1)2 - (y-2)2, domain_x : [0,2], domain_y : [1,3]