DotProduct - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


Student[MultivariateCalculus]

  

DotProduct

  

return the dot product of two vectors

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

DotProduct(u, v, conjopt)

u . v

Parameters

u, v

-

Vectors with algebraic entries and equal dimensions

conjopt

-

(optional) a keyword argument of the form conjugate = truefalse; defaults to false

Description

• 

The DotProduct command computes the dot product of u and v.

• 

The infix operator . can also be used to compute the dot product.

• 

If u and v are n-dimensional Vectors, and conjugate is false, their dot product is given by the formula ∑i=1n⁡ui⁢vi. If conjugate is true, then their dot product is given by the formula ∑i=1n⁡ui&conjugate0;⁢vi.

Examples

> 

with⁡Student:-MultivariateCalculus:

> 

u≔a,b,c

u≔abc

(1)
> 

v≔d,e,f

v≔def

(2)
> 

u·v

a⁢d+b⁢e+c⁢f

(3)

The complex dot product is not commutative.

> 

DotProduct⁡u,v,conjugate=true

a&conjugate0;⁢d+b&conjugate0;⁢e+c&conjugate0;⁢f

(4)
> 

DotProduct⁡v,u,conjugate=true

d&conjugate0;⁢a+e&conjugate0;⁢b+f&conjugate0;⁢c

(5)

Compatibility

• 

The Student[MultivariateCalculus][DotProduct] command was introduced in Maple 2016.

• 

For more information on Maple 2016 changes, see Updates in Maple 2016.

See Also

Student

Student[MultivariateCalculus]