% DEG2RAD DEG2RAD Convert From Degrees To Radians
% 
% Usage
% 
% Converts the argument from degrees to radians.  The
% syntax for its use is
% 
%    y = deg2rad(x)
% 
% where x is a numeric array.  Conversion is done by
% simply multiplying x by pi/180.

function y = deg2rad(x)
  if (isa(x,'float') || isa(x,'complex'))
    y = x*float(pi/180);
  else
    y = x*pi/180;
  end
  
