4.2BSD/usr/src/usr.lib/libF77/z_log.c

Compare this file to the similar file:
Show the results in this format:

/*
 *	"@(#)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 ) );
}