mirror of https://git.musl-libc.org/git/musl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
182 B
14 lines
182 B
#include "libm.h"
|
|
|
|
// FIXME
|
|
|
|
/* log(z) = log(|z|) + i arg(z) */
|
|
|
|
double complex clog(double complex z)
|
|
{
|
|
double r, phi;
|
|
|
|
r = cabs(z);
|
|
phi = carg(z);
|
|
return cpack(log(r), phi);
|
|
}
|
|
|