powered by
this function checks if the input is a scalar (double)
is_numeric(x, n)
is the input
is the input length