asin function
Return the arc sine of complex
. This has the same branch cuts as acos.
Implementation
Complex<num, num> asin(Complex complex) {
var val = Complex(0, 1) * complex + sqrt(Complex(1, 0) - complex * complex);
return log(val) * Complex(0, -1);
}