summaryrefslogtreecommitdiff
path: root/gnu/lib/libf2c/libF77/c_exp.c
blob: 56a8695420c20ff11ad99ac9506580750894ecf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "f2c.h"

#undef abs
#include "math.h"

void
c_exp (complex * r, complex * z)
{
  double expx, zi = z->i;

  expx = exp (z->r);
  r->r = expx * cos (zi);
  r->i = expx * sin (zi);
}