Python Vector Dot Product Formula Physics