2021-12-12 15:00:57 +03:00

6 lines
186 B
Mathematica

function A = test(x)
A(1) = 2*(x(1) - 4).^2 + 7*(x(2)-8).^2 - x(3).^2;
A(2) = 5*(x(1) - 1).^2 - 4*(x(2)+3).^2 + 2* x(3).^2 + 1;
A(3) = x(1).^2 + x(2)^2 + x(3)^2;
endfunction