mirror of
https://review.haiku-os.org/buildtools
synced 2025-02-07 14:34:51 +01:00
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15071 a95241bf-73f2-0310-859d-f6bbb57e9c96
18 lines
290 B
C
18 lines
290 B
C
#include "f2c.h"
|
|
|
|
#ifdef KR_headers
|
|
double exp(), cos(), sin();
|
|
VOID z_exp(r, z) doublecomplex *r, *z;
|
|
#else
|
|
#undef abs
|
|
#include "math.h"
|
|
void z_exp(doublecomplex *r, doublecomplex *z)
|
|
#endif
|
|
{
|
|
double expx, zi = z->i;
|
|
|
|
expx = exp(z->r);
|
|
r->r = expx * cos(zi);
|
|
r->i = expx * sin(zi);
|
|
}
|