Last change
on this file was 1392, checked in by bird, 21 years ago |
This commit was generated by cvs2svn to compensate for changes in r1391,
which included commits to RCS files with non-trunk default branches.
|
-
Property cvs2svn:cvs-rev
set to
1.1.1.2
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
File size:
219 bytes
|
Line | |
---|
1 | #include "f2c.h"
|
---|
2 |
|
---|
3 | #undef abs
|
---|
4 | #include "math.h"
|
---|
5 | extern double f__cabs (double, double);
|
---|
6 |
|
---|
7 | void
|
---|
8 | c_log (complex * r, complex * z)
|
---|
9 | {
|
---|
10 | double zi, zr;
|
---|
11 | r->i = atan2 (zi = z->i, zr = z->r);
|
---|
12 | r->r = log (f__cabs (zr, zi));
|
---|
13 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.