mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-20 20:19:44 +08:00
4d85a6fea6
* libF77/*: Delete KR_headers cruft. * libI77/*: Likewise. * libU77/*: Likewise. From-SVN: r54132
13 lines
192 B
C
13 lines
192 B
C
#include "f2c.h"
|
|
|
|
#undef abs
|
|
#include "math.h"
|
|
void z_exp(doublecomplex *r, doublecomplex *z)
|
|
{
|
|
double expx, zi = z->i;
|
|
|
|
expx = exp(z->r);
|
|
r->r = expx * cos(zi);
|
|
r->i = expx * sin(zi);
|
|
}
|