Source: http://jl.maths-lfb.fr/1S/scalaire/ex_2_calcul_produit_scalaire.pdf