mirror of
https://github.com/eddyem/lectures.git
synced 2025-12-06 02:35:18 +03:00
6 lines
186 B
Mathematica
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
|