1 /**************************************************************** 2 Copyright 1990 - 1997 by AT&T, Lucent Technologies and Bellcore. 3 4 Permission to use, copy, modify, and distribute this software 5 and its documentation for any purpose and without fee is hereby 6 granted, provided that the above copyright notice appear in all 7 copies and that both that the copyright notice and this 8 permission notice and warranty disclaimer appear in supporting 9 documentation, and that the names of AT&T, Bell Laboratories, 10 Lucent or Bellcore or any of their entities not be used in 11 advertising or publicity pertaining to distribution of the 12 software without specific, written prior permission. 13 14 AT&T, Lucent and Bellcore disclaim all warranties with regard to 15 this software, including all implied warranties of 16 merchantability and fitness. In no event shall AT&T, Lucent or 17 Bellcore be liable for any special, indirect or consequential 18 damages or any damages whatsoever resulting from loss of use, 19 data or profits, whether in an action of contract, negligence or 20 other tortious action, arising out of or in connection with the 21 use or performance of this software. 22 ****************************************************************/ 23 24 #include "f2c.h" 25 26 #ifdef __cplusplus 27 extern "C" { 28 #endif 29 r_sin(real * x)30 double r_sin(real *x) 31 { 32 return( sin(*x) ); 33 } d_sin(const doublereal * x)34 double d_sin(const doublereal *x) 35 { 36 return( sin(*x) ); 37 } c_sin(complex * r,complex * z)38 void c_sin(complex *r, complex *z) 39 { 40 double zi = z->i, zr = z->r; 41 r->r = sin(zr) * cosh(zi); 42 r->i = cos(zr) * sinh(zi); 43 } z_sin(doublecomplex * r,doublecomplex * z)44 void z_sin(doublecomplex *r, doublecomplex *z) 45 { 46 double zi = z->i, zr = z->r; 47 r->r = sin(zr) * cosh(zi); 48 r->i = cos(zr) * sinh(zi); 49 } 50 51 #ifdef __cplusplus 52 } 53 #endif 54