RFC: mingw/runtime/mingwex/complex/carg.c

[email protected] Wed, 14 Jul 2004 15:09:41 -0800
Newsgroups gmane.comp.gnu.mingw.patches
Message-ID <[email protected]>
Folks,

This is my first ever patch, so be kind.  I noticed carg is missing 
from the complex implementation, and this worked for me:


#include <math.h>
#include <complex.h>

double carg(double complex Z)
{
  return atan2(__imag__ Z,__real__ Z);
}

--
Daniel


-- 
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click