c_exp.c
Go to the documentation of this file.
00001 #include "f2c.h"
00002 
00003 #ifdef KR_headers
00004 extern double exp(), cos(), sin();
00005 
00006  VOID c_exp(r, z) complex *r, *z;
00007 #else
00008 #undef abs
00009 #include "math.h"
00010 #ifdef __cplusplus
00011 extern "C" {
00012 #endif
00013 
00014 void c_exp(complex *r, complex *z)
00015 #endif
00016 {
00017         double expx, zi = z->i;
00018 
00019         expx = exp(z->r);
00020         r->r = expx * cos(zi);
00021         r->i = expx * sin(zi);
00022         }
00023 #ifdef __cplusplus
00024 }
00025 #endif


swiftnav
Author(s):
autogenerated on Sat Jun 8 2019 18:55:15