function q8_norm_test ( )

%*****************************************************************************80
%
%% Q8_NORM_TEST tests Q8_NORM.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    22 July 2018
%
%  Author:
%
%    John Burkardt
%
  seed = 123456789;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'Q8_NORM_TEST\n' );
  fprintf ( 1, '  Q8_NORM computes the norm of a quaternion.\n' );

  for i = 1 : 5
    fprintf ( 1, '\n' );
    [ q, seed ] = q8_normal_01 ( seed );
    label = sprintf ( '  q = q8_normal_01(seed):' );
    q8_transpose_print ( q, label );
    value = q8_norm ( q );
    fprintf ( 1, '  q8_norm(q) = %g\n', value );
  end

  return
end
