Debian Codegraph @

debian/external_deps/fetk/punc/src/vf2c/c_sin.c

raw
1 #include "f2c.h"
2
3 #ifdef KR_headers
4 extern double sin(), cos(), sinh(), cosh();
5
6 VOID c_sin(r, z) realcomplex *r, *z;
7 #else
8 #undef abs
9 #include "math.h"
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13
14 void c_sin(realcomplex *r, realcomplex *z)
15 #endif
16 {
17 double zi = z->i, zr = z->r;
18 r->r = sin(zr) * cosh(zi);
19 r->i = cos(zr) * sinh(zi);
20 }
21 #ifdef __cplusplus
22 }
23 #endif