diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2006-12-22 03:38:47 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2006-12-22 03:38:47 +0000 |
commit | a941f3b092e9ba36e657e28ac53ee731a55bf2c2 (patch) | |
tree | be97f414dc3638213a68dc0585d30b5df0dc4df0 /science/linsmith/files/carg.c | |
parent | d9e357b6eccda4cb41fd84758d0e6b423b8dcc95 (diff) | |
download | ports-a941f3b092e9ba36e657e28ac53ee731a55bf2c2.tar.gz ports-a941f3b092e9ba36e657e28ac53ee731a55bf2c2.zip |
Notes
Diffstat (limited to 'science/linsmith/files/carg.c')
-rw-r--r-- | science/linsmith/files/carg.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/science/linsmith/files/carg.c b/science/linsmith/files/carg.c new file mode 100644 index 000000000000..0e021032c0dd --- /dev/null +++ b/science/linsmith/files/carg.c @@ -0,0 +1,20 @@ +/* carg.f -- translated by f2c (version 20000817). +*/ +#include <math.h> +#include <complex.h> + +double carg(complex z__) +{ + /* System generated locals */ + double ret_val; + +/* april 1977 version. w. fullerton, c3, los alamos scientific lab. */ + + ret_val = (float)0.; + if (creal(z__) != (float)0. || cimag(z__) != (float)0.) { + ret_val = atan2(cimag(z__), creal(z__)); + } + + return ret_val; +} /* carg */ + |