functions of a vector variable