projects
/
unix-history
/ blame
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blob
|
blame
(incremental) |
history
|
HEAD
date and time created 83/01/21 11:18:04 by dlw
[unix-history]
/
usr
/
src
/
usr.bin
/
f77
/
libF77
/
c_log.c
Commit
Line
Data
e88efc3a
DW
1
/*
2
* "@(#)c_log.c 1.1"
3
*/
4
5
#include "complex"
6
7
c_log(r, z)
8
complex *r, *z;
9
{
10
double log(), cabs(), atan2();
11
12
r->imag = atan2(z->imag, z->real);
13
r->real = log( cabs(z->real, z->imag) );
14
}