ack/lang/fortran/lib/libF77/z_exp.c
1991-10-07 16:59:33 +00:00

13 lines
171 B
C

#include "f2c.h"
VOID z_exp(r, z)
doublecomplex *r, *z;
{
double expx;
double exp(), cos(), sin();
expx = exp(z->r);
r->r = expx * cos(z->i);
r->i = expx * sin(z->i);
}