2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / libf2c / libF77 / c_exp.c
blob56a8695420c20ff11ad99ac9506580750894ecf8
1 #include "f2c.h"
3 #undef abs
4 #include "math.h"
6 void
7 c_exp (complex * r, complex * z)
9 double expx, zi = z->i;
11 expx = exp (z->r);
12 r->r = expx * cos (zi);
13 r->i = expx * sin (zi);