diff options
Diffstat (limited to 'libf2c/libF77/c_exp.c')
-rw-r--r-- | libf2c/libF77/c_exp.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/libf2c/libF77/c_exp.c b/libf2c/libF77/c_exp.c index 8d3d33d0fe3..8252c7f7012 100644 --- a/libf2c/libF77/c_exp.c +++ b/libf2c/libF77/c_exp.c @@ -3,21 +3,17 @@ #ifdef KR_headers extern double exp(), cos(), sin(); - VOID c_exp(resx, z) complex *resx, *z; + VOID c_exp(r, z) complex *r, *z; #else #undef abs -#include <math.h> +#include "math.h" -void c_exp(complex *resx, complex *z) +void c_exp(complex *r, complex *z) #endif { double expx; -complex res; expx = exp(z->r); -res.r = expx * cos(z->i); -res.i = expx * sin(z->i); - -resx->r = res.r; -resx->i = res.i; +r->r = expx * cos(z->i); +r->i = expx * sin(z->i); } |