Source: https://moutamadris.ma/wp-content/uploads/2022/05/exercice-la-produit-scalaire-2.pdf