You can apply mathematical operations to the elements of a vector just as you would with a single number: We can also apply logical operations across vectors; again, this will return a vector with the...You can apply mathematical operations to the elements of a vector just as you would with a single number: We can also apply logical operations across vectors; again, this will return a vector with the operation applied to the pairs of values at each position. Most functions will work with vectors just as they would with a single number. We could create a vector and pass it to the sin() function, which will return as many sine values as there are input values: