4BSD/usr/src/lib/libF77/z_exp.c

Compare this file to the similar file:
Show the results in this format:

#include "complex"

z_exp(r, z)
dcomplex *r, *z;
{
double expx;
double exp(), cos(), sin();

expx = exp(z->dreal);
r->dreal = expx * cos(z->dimag);
r->dimag = expx * sin(z->dimag);
}