function SimOut=power(Sim1,Sim2,varargin)
% Scalar power between SIM arrays (.^), or SIM array and a scalar.
% Package: @SIM
% Description: Scalar power between SIM arrays (.^), or SIM array
%              and a scalar.
% Input  : - A SIM object.
%          - A SIM object or a scalar.
%          * Additional arguments to pass to bfun2sim.m.
% Output : - A SIM object with the result power.
% License: GNU general public license version 3
% Tested : Matlab R2015b
%     By : Eran O. Ofek                    Mar 2016
%    URL : http://weizmann.ac.il/home/eofek/matlab/
% Example: Sim.^3; Sim.^Sim;
% Reliable: 2
%--------------------------------------------------------------------------

%SimOut = sim_imarith('In1',Sim1,'In2',Sim2,'Op','.^',varargin{:});
SimOut=bfun2sim(Sim1,Sim2,@power,varargin{:});