xref: /csrg-svn/usr.bin/f77/libF77/z_cos.c (revision 47940)
1*47940Sbostic /*-
2*47940Sbostic  * Copyright (c) 1980 The Regents of the University of California.
3*47940Sbostic  * All rights reserved.
422993Skre  *
5*47940Sbostic  * %sccs.include.proprietary.c%
610549Sdlw  */
710549Sdlw 
8*47940Sbostic #ifndef lint
9*47940Sbostic static char sccsid[] = "@(#)z_cos.c	5.2 (Berkeley) 04/12/91";
10*47940Sbostic #endif /* not lint */
11*47940Sbostic 
1210549Sdlw #include "complex"
1310549Sdlw 
z_cos(r,z)1410549Sdlw z_cos(r, z)
1510549Sdlw dcomplex *r, *z;
1610549Sdlw {
1710549Sdlw double sin(), cos(), sinh(), cosh();
1810549Sdlw 
1910549Sdlw r->dreal = cos(z->dreal) * cosh(z->dimag);
2010549Sdlw r->dimag = - sin(z->dreal) * sinh(z->dimag);
2110549Sdlw }
22