home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programmer 7500
/
MAX_PROGRAMMERS.iso
/
INFO
/
FORTRAN
/
F2C_SRC.ZIP
/
F2C
/
LIBF77
/
C_LOG.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1991-06-10
|
155 b
|
11 lines
#include "f2c.h"
VOID c_log(r, z)
complex *r, *z;
{
double log(), cabs(), atan2();
r->i = atan2(z->i, z->r);
r->r = log( cabs(z->r, z->i) );
}