next up previous contents index
suivant: Cross product : cross monter: Functions for vectors précédent: Term by term quotient   Table des matières   Index


Scalar product : scalar_product * dotprod dot dotP scalar_Product

dot or dotP or dotprod or scalar_product or scalarProduct or the infixed operator * takes as argument two vectors.
dot or dotP or dotprod or scalar_product or scalarProduct or * returns the scalar product of these two vectors.
Input :
dot([1,2,3],[4,3,5])
or :
scalar_product([1,2,3],[4,3,5])
or :
[1,2,3]*[4,3,5]
or :
'*'([1,2,3],[4,3,5])
Output :
25
Indeed 25=1*4+2*3+3*5.

Note that * may be used to find the product of two polynomials represented as list of their coefficients, but to avoid ambiguity, the polynomial lists must be poly1[...].



giac documentation written by Renée De Graeve and Bernard Parisse