]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - contrib/libf2c/libF77/z_exp.c
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.git] / contrib / libf2c / libF77 / z_exp.c
1 #include "f2c.h"
2
3 #undef abs
4 #include "math.h"
5 void
6 z_exp (doublecomplex * r, doublecomplex * z)
7 {
8   double expx, zi = z->i;
9
10   expx = exp (z->r);
11   r->r = expx * cos (zi);
12   r->i = expx * sin (zi);
13 }