function a = realpow(b,c)
%REALPOW Real power.
%   REALPOW(X,Y) requires X.^Y to be real.
%
%   See also REALLOG, REALSQRT.

% $Revision: 1.6 $  $Date: 1998/12/17 19:07:30 $
% Copyright (c) 1984-1998 by The MathWorks, Inc.


a = b.^c;
if( any(any(imag(a))) ),
   error( 'Realpow produces complex result.' );
end
