diff options
Diffstat (limited to 'Build/source/utils/pmx/pmx-2.6.17/libf2c/c_exp.c')
-rw-r--r-- | Build/source/utils/pmx/pmx-2.6.17/libf2c/c_exp.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Build/source/utils/pmx/pmx-2.6.17/libf2c/c_exp.c b/Build/source/utils/pmx/pmx-2.6.17/libf2c/c_exp.c new file mode 100644 index 00000000000..f46508d35b1 --- /dev/null +++ b/Build/source/utils/pmx/pmx-2.6.17/libf2c/c_exp.c @@ -0,0 +1,25 @@ +#include "f2c.h" + +#ifdef KR_headers +extern double exp(), cos(), sin(); + + VOID c_exp(r, z) complex *r, *z; +#else +#undef abs +#include "math.h" +#ifdef __cplusplus +extern "C" { +#endif + +void c_exp(complex *r, complex *z) +#endif +{ + double expx, zi = z->i; + + expx = exp(z->r); + r->r = expx * cos(zi); + r->i = expx * sin(zi); + } +#ifdef __cplusplus +} +#endif |