xref: /csrg-svn/usr.bin/f77/libF77/z_sin.c (revision 47940)
1*47940Sbostic /*-
2*47940Sbostic  * Copyright (c) 1980 The Regents of the University of California.
3*47940Sbostic  * All rights reserved.
423000Skre  *
5*47940Sbostic  * %sccs.include.proprietary.c%
610553Sdlw  */
710553Sdlw 
8*47940Sbostic #ifndef lint
9*47940Sbostic static char sccsid[] = "@(#)z_sin.c	5.2 (Berkeley) 04/12/91";
10*47940Sbostic #endif /* not lint */
11*47940Sbostic 
1210553Sdlw #include "complex"
1310553Sdlw 
z_sin(r,z)1410553Sdlw z_sin(r, z)
1510553Sdlw dcomplex *r, *z;
1610553Sdlw {
1710553Sdlw double sin(), cos(), sinh(), cosh();
1810553Sdlw 
1910553Sdlw r->dreal = sin(z->dreal) * cosh(z->dimag);
2010553Sdlw r->dimag = cos(z->dreal) * sinh(z->dimag);
2110553Sdlw }
22