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

#undef abs
#include "math.h"
void
z_exp (doublecomplex * r, doublecomplex * z)
{
  double expx, zi = z->i;

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