The input to the function isx and the output isy. Write the function such thatx can be a vector (use element-by-element operations).