Multiply a number by 2
y = mul2(x)
The mul2 function multiplies an arithmetic type by two and returns the result. If its argument is an array, a new array will be created whose elements are obtained from the original array by using the mul2 function.