public static function create($real, $imag)
    {
        $x = static::toFloat($real);
        $y = static::toFloat($imag);

        return new Complex($x, $y);
    }
public static function create($real, $imag)
    {
        $x = static::toFloat($real);
        $y = static::toFloat($imag);

        return new Complex($x, $y);
    }
public static function create ( $ real , $ imag ) { $ x = static :: toFloat ( $ real ) ; $ y = static :: toFloat ( $ imag ) ; return new Complex ( $ x , $ y ) ; }
create a complex number from its real and imaginary parts


@param mixed $real (float, int, Rational)
@param mixed $imag (float, int, Rational)
@throws SyntaxErrorException if the string cannot be parsed
@retval float
create a complex number from its real and imaginary parts