This commit was generated by cvs2svn to track changes on a CVS vendor
[unix-history] / lib / libF77 / c_cos.c
CommitLineData
547779a8
WH
1#include "f2c.h"
2
3#ifdef KR_headers
4extern double sin(), cos(), sinh(), cosh();
5
6VOID c_cos(r, z) complex *r, *z;
7#else
8#undef abs
9#include "math.h"
10
11void c_cos(complex *r, complex *z)
12#endif
13{
14r->r = cos(z->r) * cosh(z->i);
15r->i = - sin(z->r) * sinh(z->i);
16}