powered by
this function checks if the input is a numeric (double) vector
is_numeric_vector(x, n)
is the input
is the input vector length