function x = p06_start ( option, nvar ) %*****************************************************************************80 % %% P06_START returns a starting point for problem 6. % % Licensing: % % This code is distributed under the GNU LGPL license. % % Modified: % % 03 September 2008 % % Author: % % John Burkardt % % Parameters: % % Input, integer OPTION, the option index. % % Input, integer NVAR, the number of variables. % % Output, real X(NVAR), the starting point. % x = zeros ( nvar, 1 ); if ( option == 1 ) x = [ ... 0.000009180674117, ... 0.051206082777927, ... -0.000003471121026, ... 0.059606082627213, ... 0.000016537664587, ... -0.050000000000000, ... 0.000109431378424, ... 0.000000000000000 ]'; elseif ( option == 2 ) x = [ ... 0.000001548268247, ... 0.008192973225663, ... -0.000000682134573, ... 0.009536973221178, ... 0.000002896734870, ... -0.008000000000000, ... 0.000018188778989, ... 0.000000000000000 ]'; elseif ( option == 3 ) x = [ ... 0.0, ... 0.0, ... 0.0, ... 0.0, ... 0.0, ... 0.0, ... 0.0, ... 0.0 ]'; elseif ( option == 4 ) x = [ ... -0.000010655314069, ... -0.051206082422980, ... 0.000005600187501, ... -0.059606082643400, ... -0.000020891016199, ... 0.050000000000000, ... -0.000122595323216, ... 0.000000000000000 ]'; elseif ( option == 5 ) x = [ ... -0.000027083319493, ... -0.102412164106124, ... 0.000014540858026, ... -0.119212165322433, ... -0.000048014067202, ... 0.100000000000000, ... -0.000267808407544, ... 0.000000000000000 ]'; end return end