Vector dot (scalar) product
dotprod(u, v, 'orthogonal')
lists of the same length or vectors of the same dimension
(optional) assume an orthogonal vector space
Important: The linalg package has been deprecated. Use the superseding command LinearAlgebra[DotProduct], instead.
- For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.
If called with only two arguments, dotprod computes the vector dot product using the standard definition for a vector space over the complex field: sum u[i]*conjugate(v[i]), as i ranges over the length of u and v.
If the third argument 'orthogonal' is specified, dotprod will compute the vector dot product using the definition: sum u[i]*v[i], as i ranges over the length of u and v.
If u and v are real vectors, then the two forms of dotprod are equivalent.
The command with(linalg,dotprod) allows the use of the abbreviated form of this command.
u ≔ 1xy
v ≔ 100
a ≔ 1,I;b ≔ I,1
a ≔ 1,I
b ≔ I,1
Download Help Document
What kind of issue would you like to report? (Optional)
Thank you for submitting feedback on this help document. Your feedback will be used
to improve Maple's help in the future.