|
|
1.1 ! root 1: #include "complex" ! 2: ! 3: c_log(r, z) ! 4: complex *r, *z; ! 5: { ! 6: double log(), cabs(), atan2(); ! 7: ! 8: r->imag = atan2(z->imag, z->real); ! 9: r->real = log( cabs(z->real, z->imag) ); ! 10: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.