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