function retval = lsqvec(x)
% usage:  y = lsqvec(x)
% description: returns least squares
% vector function r(x)

% no bulletproofing
retval = [(x(1)+3)*(x(2)^3-7)+18; sin(x(2)*exp(x(1))-1)];