xref: /csrg-svn/usr.bin/f77/libF77/c_exp.c (revision 47940)
1*47940Sbostic /*-
2*47940Sbostic  * Copyright (c) 1980 The Regents of the University of California.
3*47940Sbostic  * All rights reserved.
422830Skre  *
5*47940Sbostic  * %sccs.include.proprietary.c%
610444Sdlw  */
710444Sdlw 
8*47940Sbostic #ifndef lint
9*47940Sbostic static char sccsid[] = "@(#)c_exp.c	5.2 (Berkeley) 04/12/91";
10*47940Sbostic #endif /* not lint */
11*47940Sbostic 
1210444Sdlw #include "complex"
1310444Sdlw 
c_exp(r,z)1410444Sdlw c_exp(r, z)
1510444Sdlw complex *r, *z;
1610444Sdlw {
1710444Sdlw double expx;
1810444Sdlw double exp(), cos(), sin();
1910444Sdlw 
2010444Sdlw expx = exp(z->real);
2110444Sdlw r->real = expx * cos(z->imag);
2210444Sdlw r->imag = expx * sin(z->imag);
2310444Sdlw }
24