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

        $r = exp($z->x);
        return new Complex($r*cos($z->y), $r*sin($z->y));
    }
public static function exp($z) {
        if (!($z instanceof Complex)) $z = static::parse($z);

        $r = exp($z->x);
        return new Complex($r*cos($z->y), $r*sin($z->y));
    }
public static function exp ( $ z ) { if ( ! ( $ z instanceof Complex ) ) $ z = static :: parse ( $ z ) ; $ r = exp ( $ z -> x ) ; return new Complex ( $ r * cos ( $ z -> y ) , $ r * sin ( $ z -> y ) ) ; }
complex exponential function

Complex::exp($z) computes and returns exp($z)


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