home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / RLaB 1.18c / toolbox / angle.r next >
Encoding:
Text File  |  1994-02-21  |  139 b   |  10 lines  |  [TEXT/ttxt]

  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.