mailing list of musl libc
 help / color / mirror / code / Atom feed
3244bebb169349d946a63bd2b7e984be75821294 blob 321 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
 
#include "complex_impl.h"

// FIXME

/* asin(z) = -i log(i z + sqrt(1 - z*z)) */

double complex casin(double complex z)
{
	double complex w;
	double x, y;

	x = creal(z);
	y = cimag(z);
	w = CMPLX(1.0 - (x - y)*(x + y), -2.0*x*y);
	double complex r = clog(CMPLX(-y, x) + csqrt(w));
	return CMPLX(cimag(r), -creal(r));
}
debug log:

solving 3244bebb ...
found 3244bebb in https://git.vuxu.org/mirror/musl/

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).