function x = p01_x ( n ) %*****************************************************************************80 % %% P01_X returns the least squares solution X for problem 1. % % Licensing: % % This code is distributed under the GNU LGPL license. % % Modified: % % 15 April 2012 % % Author: % % John Burkardt % % Parameters: % % Input, integer N, the number of variables. % % Output, real X(N,1), the least squares solution. % x = [ -3.0200000; 4.4914286; -0.72857143 ]; return end