ack/lang/fortran/lib/libF77/c_exp.c

13 lines
165 B
C
Raw Normal View History

1991-10-07 16:59:33 +00:00
#include "f2c.h"
VOID c_exp(r, z)
complex *r, *z;
{
double expx;
double exp(), cos(), sin();
expx = exp(z->r);
r->r = expx * cos(z->i);
r->i = expx * sin(z->i);
}