Complex variables with physical applications