clc;clear;syms x y r;f = (x+y)^2 + (x+1)^2 + (y+3)^2;syms x_tmp y_tmp;f_tmp = (x_tmp+y_tmp)^2 + (x_tmp+1)^2 + (y_tmp+3)^2;fx = diff(f,x);fy = diff(f,y);...
clc;clear;f = inline('20 + x.^2 + y.^2 -10*(cos(2*pi*x) + cos(2*pi*y))');x = -5:0.01:5;y = -5:0.01:5;[X,Y] = meshgrid(x,y);F = f(X,Y);figure(1);mesh(X,Y...
clc;clear;f = inline('2.4-(x.^4 + 3*y.^4 - 0.2*cos(3*pi*x) - 0.4*cos(4*pi*y) + 0.6)');x = -1:0.001:1;y = -1:0.001:1;[X,Y] = meshgrid(x,y);F = f(X,Y);figu...