ack/lang/fortran/lib/libF77/z_log.c

11 lines
153 B
C
Raw Permalink Normal View History

1991-10-07 16:59:33 +00:00
#include "f2c.h"
VOID z_log(r, z)
doublecomplex *r, *z;
{
double log(), cabs(), atan2();
r->i = atan2(z->i, z->r);
r->r = log( cabs( z->r, z->i ) );
}