In mathematics and physics, what is a vector primarily defined as?
A) A quantity that has only magnitude but no direction
B) A quantity that has both magnitude and direction
C) A graphical representation of a data set
D) A constant value used in equations