function [ lambda, mu ] = p20_setup ( l, theta )

%*****************************************************************************80
%
%% p20_setup() finds a solution (L,THETA,LAMBDA,MU) given L and THETA.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    13 October 2008
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real L, THETA, the values of L and THETA.
%
%  Output:
%
%    real LAMBDA, MU, values for LAMBDA and MU.
%

  mu = 2 * ( 1.0 - l ) * sin ( theta ) - 0.5 * cos ( theta ) * theta / l;

  lambda = ( ( 1.0 - l ) - 0.5 * mu * sin ( theta ) ) / cos ( theta );
  
  return
end
