Enhanced the scalar product.

Made the scalar product compatible with changes between delimiterless
and delimited notation, and set it to an ISO 80000-2:2009-compliant
notation.