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

        return static::create($z->x + $w->x, $z->y + $w->y);
    }
public static function add($z, $w) {
        if (!($z instanceof Complex)) $z = static::parse($z);
        if (!($w instanceof Complex)) $w = static::parse($w);

        return static::create($z->x + $w->x, $z->y + $w->y);
    }
public static function add ( $ z , $ w ) { if ( ! ( $ z instanceof Complex ) ) $ z = static :: parse ( $ z ) ; if ( ! ( $ w instanceof Complex ) ) $ w = static :: parse ( $ w ) ; return static :: create ( $ z -> x + $ w -> x , $ z -> y + $ w -> y ) ; }
add two complex numbers

Complex::add($z, $w) computes and returns $z+$w


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