Forgot to commit.
[official-gcc.git] / libf2c / libF77 / z_sin.c
blob94456c9c30a3346cec86d6ca5bfb12d5e22b7ea8
1 #include "f2c.h"
3 #ifdef KR_headers
4 double sin(), cos(), sinh(), cosh();
5 VOID z_sin(resx, z) doublecomplex *resx, *z;
6 #else
7 #undef abs
8 #include <math.h>
9 void z_sin(doublecomplex *resx, doublecomplex *z)
10 #endif
12 doublecomplex res;
14 res.r = sin(z->r) * cosh(z->i);
15 res.i = cos(z->r) * sinh(z->i);
17 resx->r = res.r;
18 resx->i = res.i;