Add example to demonstrate scalar broadcasting for vectorized function