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