load ("zad_domowe.mat")

A = [ x ones(size(x,1),1) sin(x) cos(x)];

L = -y;

X = -inv(A'*A)*(A'*L)

Amp = sqrt(sum(X(3:4).^2))
phi = atan2(X(4),X(3)) 
