source: branches/GNU/src/gcc/libf2c/libF77/c_log.c@ 1391

Last change on this file since 1391 was 1391, checked in by bird, 22 years ago

GCC v3.3.3 sources.

  • 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"
5extern double f__cabs (double, double);
6
7void
8c_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.