function [ alpha, beta, delta, t0, xyz0, tstop ] = arneodo_parameters ( ...
  alpha_user, beta_user, delta_user, t0_user, xyz0_user, tstop_user )

%*****************************************************************************80
%
%% arneodo_parameters() returns parameters for arneodo_ode().
%
%  Discussion:
%
%    If input values are specified, this resets the default parameters.
%    Otherwise, the output will be the current defaults.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    16 September 2021
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real alpha_USER, beta_USER, delta_USER: problem parameters.
%
%    real T0_USER: the initial time.
%
%    real xyz0_USER(3): the initial condition.
%
%    real TSTOP_USER: the final time.
%
%  Output:
%
%    real alpha, beta, delta: problem parameters.
%
%    real T0: the initial time.
%
%    real xyz0(3): the initial condition.
%
%    real TSTOP: the final time.
%
  persistent alpha_default;
  persistent beta_default;
  persistent delta_default;
  persistent t0_default;
  persistent xyz0_default;
  persistent tstop_default;
%
%  Initialize defaults.
%
  if ( isempty ( alpha_default ) )
    alpha_default = -5.5;
  end

  if ( isempty ( beta_default ) )
    beta_default = 3.5
  end

  if ( isempty ( delta_default ) )
    delta_default = -1.0;
  end

  if ( isempty ( t0_default ) )
    t0_default = 0.0;
  end

  if ( isempty ( xyz0_default ) )
    xyz0_default = [ 0.2; 0.2; -0.75 ];
  end

  if ( isempty ( tstop_default ) )
    tstop_default = 100.0;
  end
%
%  Update defaults if input was supplied.
%
  if ( 1 <= nargin )
    alpha_default = alpha_user;
  end

  if ( 2 <= nargin )
    beta_default = beta_user;
  end

  if ( 3 <= nargin )
    delta_default = delta_user;
  end

  if ( 4 <= nargin )
    t0_default = t0_user;
  end

  if ( 5 <= nargin )
    xyz0_default = xyz0_user;
  end

  if ( 6 <= nargin )
    tstop_default = tstop_user;
  end
%
%  Return values.
%
  alpha = alpha_default;
  beta = beta_default;
  delta = delta_default;
  t0 = t0_default;
  xyz0 = xyz0_default;
  tstop = tstop_default;
  
  return
end

