function r8_unswap3_test ( )

%*****************************************************************************80
%
%% r8_unswap3_test() tests r8_unswap3().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    31 July 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8_UNSWAP3_TEST\n' );
  fprintf ( 1, '  R8_UNSWAP3 reverses R8_SWAP3.\n' );

  x = 1.0;
  y = 3.14159;
  z = 1952.0;

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Before R8_SWAP3:      %g  %g  %g\n', x, y, z );
  [ x, y, z ] = r8_swap3 ( x, y, z );
  fprintf ( 1, '  After R8_SWAP3 #1:    %g  %g  %g\n', x, y, z );
  [ x, y, z ] = r8_swap3 ( x, y, z );
  fprintf ( 1, '  After R8_SWAP3 #2:    %g  %g  %g\n', x, y, z );
  [ x, y, z ] = r8_unswap3 ( x, y, z );
  fprintf ( 1, '  After R8_UNSWAP3 #1:  %g  %g  %g\n', x, y, z );
  [ x, y, z ] = r8_unswap3 ( x, y, z );
  fprintf ( 1, '  After R8_UNSWAP3 #2:  %g  %g  %g\n', x, y, z );

  return
end
