function error_frobenius = r8mat_is_symmetric ( A )

%*****************************************************************************80
%
%% r8mat_is_symmetric() checks a real matrix for symmetry.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    25 September 2022
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real A(M,N), the matrix.
%
%  Output:
%
%    real ERROR_FROBENIUS: the Frobenius norm of ( A - A' ).
%
  [ m, n ] = size ( A );
  
  if ( m ~= n )
    error_frobenius = realmax ( );
  else
    error_frobenius = norm ( A - A', 'fro' );
  end

  return
end
