public static function arcsin($z) {
        if (!($z instanceof Complex)) $z = static::parse($z);

        $I = new Complex(0,1);
        $iz = static::mul($z, $I);                                       // iz
        $temp = static::sqrt(static::sub(1, static::mul($z, $z)));       // sqrt(1-z^2)
        return static::div(static::log(static::add($iz, $temp)), $I);
    }
public static function arcsin($z) {
        if (!($z instanceof Complex)) $z = static::parse($z);

        $I = new Complex(0,1);
        $iz = static::mul($z, $I);                                       // iz
        $temp = static::sqrt(static::sub(1, static::mul($z, $z)));       // sqrt(1-z^2)
        return static::div(static::log(static::add($iz, $temp)), $I);
    }
public static function arcsin ( $ z ) { if ( ! ( $ z instanceof Complex ) ) $ z = static :: parse ( $ z ) ; $ I = new Complex ( 0 , 1 ) ; $ iz = static :: mul ( $ z , $ I ) ; // iz $ temp = static :: sqrt ( static :: sub ( 1 , static :: mul ( $ z , $ z ) ) ) ; // sqrt(1-z^2) return static :: div ( static :: log ( static :: add ( $ iz , $ temp ) ) , $ I ) ; }
complex inverse sine function

Complex::arcsin($z) computes and returns the principal branch of arcsin($z)


@param mixed $z (Complex, or parsable to Complex)
@retval Complex
complex inverse sine function