I've come across two different definitions of vectors.
The first one is from linear algebra and it just defines vectors to be the elements of a vector space.
The other one is the one that we were taught in the physics class. There a vector was defined as anything whose coordinates transform in a particular way under certain transformations of space (the professor specifically gave example of the pairs of numbers $(x, y)\in\mathbb R^2$ and the transformation on $\mathbb R^2$ as rotation by angle $\theta$ so that $(x, y)\mapsto (x\cos\theta+y\sin\theta, -x\sin\theta + y\cos\theta)$).
Question: Is there a relation between the two? And can someone help making the second definition mathematically precise, and more general? (I don't know how to generally define "space" in "transformations of space".)