Dot Product Formula With Cosine