1*47940Sbostic /*- 2*47940Sbostic * Copyright (c) 1980 The Regents of the University of California. 3*47940Sbostic * All rights reserved. 422998Skre * 5*47940Sbostic * %sccs.include.proprietary.c% 610551Sdlw */ 710551Sdlw 8*47940Sbostic #ifndef lint 9*47940Sbostic static char sccsid[] = "@(#)z_exp.c 5.2 (Berkeley) 04/12/91"; 10*47940Sbostic #endif /* not lint */ 11*47940Sbostic 1210551Sdlw #include "complex" 1310551Sdlw z_exp(r,z)1410551Sdlwz_exp(r, z) 1510551Sdlw dcomplex *r, *z; 1610551Sdlw { 1710551Sdlw double expx; 1810551Sdlw double exp(), cos(), sin(); 1910551Sdlw 2010551Sdlw expx = exp(z->dreal); 2110551Sdlw r->dreal = expx * cos(z->dimag); 2210551Sdlw r->dimag = expx * sin(z->dimag); 2310551Sdlw } 24