Annotation of cci/usr/src/usr.lib/libF77/c_log.c, revision 1.1.1.1

1.1       root        1: /*
                      2:  *     "@(#)c_logf.c   1.1"
                      3:  */
                      4: 
                      5: #include "complex"
                      6: 
                      7: c_log(r, z)
                      8: register complex *r, *z;
                      9: {
                     10: fortran float log();
                     11: float atan2();
                     12: float cabs();
                     13: 
                     14: r->imag = atan2(z->imag, z->real);
                     15: r->real = log( cabs(z->real, z->imag) );
                     16: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.