home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / r / rlab / !RLaB / toolbox / angle next >
Encoding:
Text File  |  1994-02-21  |  139 b   |  10 lines

  1. //
  2. // Caclulate phase angle of a complex value.
  3. // angle = atan2(imag,real)
  4. //
  5.  
  6. angle = function(a)
  7. {
  8.   return atan2(imag(a), real(a));
  9. };
  10.