contributed by Andrew Gibson simple way to create a n-element vector of the same value (x)
1D array of length n filled with values x
scalar input value
number of replications