xref: /original-bsd/usr.bin/f77/libF77/z_exp.c (revision 7748387a)
1 /*-
2  * Copyright (c) 1980 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.proprietary.c%
6  */
7 
8 #ifndef lint
9 static char sccsid[] = "@(#)z_exp.c	5.2 (Berkeley) 04/12/91";
10 #endif /* not lint */
11 
12 #include "complex"
13 
14 z_exp(r, z)
15 dcomplex *r, *z;
16 {
17 double expx;
18 double exp(), cos(), sin();
19 
20 expx = exp(z->dreal);
21 r->dreal = expx * cos(z->dimag);
22 r->dimag = expx * sin(z->dimag);
23 }
24