Calculates the reciprocal of a vector.