FSF GCC merge 02/23/03
[official-gcc.git] / libf2c / libF77 / c_cos.c
blob59659754978f139f8189c83c5e3ec0b4d158cffe
1 #include "f2c.h"
3 #undef abs
4 #include "math.h"
6 void
7 c_cos (complex * r, complex * z)
9 double zi = z->i, zr = z->r;
10 r->r = cos (zr) * cosh (zi);
11 r->i = -sin (zr) * sinh (zi);