( Vectors ( ( ( ( have ( both ( ( ( a magnitude ) and ) ( a direction ) ) ) ) , ) ( in ( contrast ( to ( scalars ( which ( have ( only ( a magnitude ) ) ) ) ) ) ) ) ) . ) )
(ROOT (S (NP (NNS Vectors)) (VP (VBP have) (NP (PDT both) (NP (DT a) (NN magnitude)) (CC and) (NP (DT a) (NN direction))) (, ,) (PP (IN in) (NP (NP (NN contrast)) (PP (TO to) (NP (NP (NNS scalars)) (SBAR (WHNP (WDT which)) (S (VP (VBP have) (NP (RB only) (DT a) (NN magnitude)))))))))) (. .)))
Vectors have both a magnitude and a direction, in contrast to scalars which have only a magnitude.
(ROOT (S (NP (NNP Vector)) (VP (VBZ is) (NP (NP (DT a) (NN measure)) (SBAR (WHNP (WDT that)) (S (VP (VBZ has) (NP (DT both) (NN size) (CC and) (NN direction))))))) (. .)))