function x = p07_sol ( n )

%*****************************************************************************80
%
%% p07_sol() returns the solution of problem 7.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    10 October 2020
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the order of the system.  N is primarily
%    needed for problems where N may vary.
%
%  Output:
%
%    real X(N), a solution value if known, or [].
%
  if ( n == 1 )
    x = zeros ( n, 1 );
    x(1) = 0.5000000000000000;
    x = 2.0 * x - 1.0;
  elseif ( n == 2 )
    x = zeros ( n, 1 );
    x(1) = 0.2113248654051871;
    x(2) = 0.7886751345948129;
    x = 2.0 * x - 1.0;
  elseif ( n == 3 )
    x = zeros ( n, 1 );
    x(1) = 0.1464466094067263;
    x(2) = 0.5000000000000000;
    x(3) = 0.8535533905932737;
    x = 2.0 * x - 1.0;
  elseif ( n == 4 )
    x = zeros ( n, 1 );
    x(1) = 0.1026727638500000;
    x(2) = 0.4062037629500000;
    x(3) = 0.5937962370500000;
    x(4) = 0.8973272361500000;
    x = 2.0 * x - 1.0;
  elseif ( n == 5 )
    x = zeros ( n, 1 );
    x(1) = 8.3751256499999982E-02;
    x(2) = 0.3127292952000000;
    x(3) = 0.5000000000000000;
    x(4) = 0.6872707048000000;
    x(5) = 0.9162487435000000;
    x = 2.0 * x - 1.0;
  elseif ( n == 6 )
    x = zeros ( n, 1 );
    x(1) = 6.6876590949999981E-02;
    x(2) = 0.2887406731000000;
    x(3) = 0.3666822992500000;
    x(4) = 0.6333177007499999;
    x(5) = 0.7112593269000000;
    x(6) = 0.9331234090500000;
    x = 2.0 * x - 1.0;
  elseif ( n == 7 )
    x = zeros ( n, 1 );
    x(1) = 5.8069149599999981E-02;
    x(2) = 0.2351716123500000;
    x(3) = 0.3380440947500000;
    x(4) = 0.5000000000000000;
    x(5) = 0.6619559052500000;
    x(6) = 0.7648283876499999;
    x(7) = 0.9419308504000000;
    x = 2.0 * x - 1.0;
  elseif ( n == 9 )
    x = zeros ( n, 1 );
    x(1) = 4.4205346149999991E-02;
    x(2) = 0.1994906723000000;
    x(3) = 0.2356191084500000;
    x(4) = 0.4160469079000000;
    x(5) = 0.5000000000000000;
    x(6) = 0.5839530921000000;
    x(7) = 0.7643808915500000;
    x(8) = 0.8005093276999999;
    x(9) = 0.9557946538500000;
    x = 2.0 * x - 1.0;
  else
    x = [];
  end

  return
end
