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

13 lines
171 B
C
Raw Permalink Normal View History

1991-10-07 16:59:33 +00:00
#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);
}