date and time created 83/01/21 11:20:33 by dlw
authorDavid Wasley <dlw@ucbvax.Berkeley.EDU>
Sat, 22 Jan 1983 03:20:33 +0000 (19:20 -0800)
committerDavid Wasley <dlw@ucbvax.Berkeley.EDU>
Sat, 22 Jan 1983 03:20:33 +0000 (19:20 -0800)
SCCS-vsn: usr.bin/f77/libF77/z_log.c 1.1

usr/src/usr.bin/f77/libF77/z_log.c [new file with mode: 0644]

diff --git a/usr/src/usr.bin/f77/libF77/z_log.c b/usr/src/usr.bin/f77/libF77/z_log.c
new file mode 100644 (file)
index 0000000..55fa61b
--- /dev/null
@@ -0,0 +1,14 @@
+/*
+ *     "@(#)z_log.c    1.1"
+ */
+
+#include "complex"
+
+z_log(r, z)
+dcomplex *r, *z;
+{
+double log(), cabs(), atan2();
+
+r->dimag = atan2(z->dimag, z->dreal);
+r->dreal = log( cabs( z->dreal, z->dimag ) );
+}