function r8vec_midspace_test ( )

%*****************************************************************************80
%
%% R8VEC_MIDSPACE_TEST tests R8VEC_MIDSPACE.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    03 June 2012
%
%  Author:
%
%    John Burkardt
%
  n = 5;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8VEC_MIDSPACE_TEST\n' );
  fprintf ( 1, '  For a R8VEC:\n' );
  fprintf ( 1, '  R8VEC_MIDSPACE: evenly spaced midpoints between A and B\n' );

  a = 10.0;
  b = 20.0;

  x = r8vec_midspace ( n, a, b );
  r8vec_print ( n, x, '  r8vec_midspace ( 5, 10, 20 )' );

  return
end

johannesgerer
github-repos/MATLAB/johannesgerer-jburkardt-m/jburkardt-m-1726deb4a34dd08a49c26359d44ef47253f006c1/r8lib/r8vec_midspace_test.m
jburkardt-m
github-repos/MATLAB/johannesgerer-jburkardt-m
1726deb4a34dd08a49c26359d44ef47253f006c1