public static function pow($z, $w) {
        // If exponent is an integer, compute the power using a square-and-multiply algorithm
        if (is_int($w)) return static::powi($z, $w);

        // Otherwise compute the principal branch: z^w = exp(wlog z)
        return static::exp(static::mul($w, static::log($z)));
    }
public static function pow($z, $w) {
        // If exponent is an integer, compute the power using a square-and-multiply algorithm
        if (is_int($w)) return static::powi($z, $w);

        // Otherwise compute the principal branch: z^w = exp(wlog z)
        return static::exp(static::mul($w, static::log($z)));
    }
public static function pow ( $ z , $ w ) { // If exponent is an integer, compute the power using a square-and-multiply algorithm if ( is_int ( $ w ) ) return static :: powi ( $ z , $ w ) ; // Otherwise compute the principal branch: z^w = exp(wlog z) return static :: exp ( static :: mul ( $ w , static :: log ( $ z ) ) ) ; }
powers of two complex numbers

Complex::pow($z, $w) computes and returns the principal value of $z^$w


@param mixed $z (Complex, or parsable to Complex)
@param mixed $w (Complex, or parsable to Complex)
@retval Complex
powers of two complex numbers