SageMath is a free open-source mathematics software system. You can use a SageMath cell online by going here.
v=vector([2,3,1]); u=vector([1,-2,3])
u.dot_product(v)