1: /*
   2:  * Copyright (c) 1980 Regents of the University of California.
   3:  * All rights reserved.  The Berkeley software License Agreement
   4:  * specifies the terms and conditions for redistribution.
   5:  *
   6:  *	@(#)c_log.c	5.1	6/7/85
   7:  */
   8: 
   9: #include "complex"
  10: 
  11: c_log(r, z)
  12: complex *r, *z;
  13: {
  14: double log(), cabs(), atan2();
  15: 
  16: r->imag = atan2(z->imag, z->real);
  17: r->real = log( cabs(z->real, z->imag) );
  18: }

Defined functions

c_log defined in line 11; never used
Last modified: 1987-02-18
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 2102
Valid CSS Valid XHTML 1.0 Strict