mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-20 03:18:59 +08:00
* libF77/*: Delete KR_headers cruft. * libI77/*: Likewise. * libU77/*: Likewise. From-SVN: r54132
14 lines
181 B
C
14 lines
181 B
C
#include "f2c.h"
|
|
|
|
#undef abs
|
|
#include "math.h"
|
|
|
|
void c_exp(complex *r, complex *z)
|
|
{
|
|
double expx, zi = z->i;
|
|
|
|
expx = exp(z->r);
|
|
r->r = expx * cos(zi);
|
|
r->i = expx * sin(zi);
|
|
}
|