summaryrefslogtreecommitdiffstats
path: root/contrib/libf2c/libF77/c_sin.c
blob: 44bce9f7739e9e3a2dcd54b7985c7cdf58e2d430 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "f2c.h"

#undef abs
#include "math.h"

void
c_sin (complex * r, complex * z)
{
  double zi = z->i, zr = z->r;
  r->r = sin (zr) * cosh (zi);
  r->i = cos (zr) * sinh (zi);
}
OpenPOWER on IntegriCloud