linalg(deprecated)/dotprod - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : linalg(deprecated)/dotprod

linalg(deprecated)

  

dotprod

  

Vector dot (scalar) product

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

dotprod(u, v)

dotprod(u, v, 'orthogonal')

Parameters

u, v

-

lists of the same length or vectors of the same dimension

orthogonal

-

(optional) assume an orthogonal vector space

Description

• 

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.

Examples

Important: The linalg package has been deprecated. Use the superseding command LinearAlgebra[DotProduct], instead.

withlinalg:

uvector1,x,y

u1xy

(1)

vvector1,0,0

v100

(2)

dotprodu,v

1

(3)

a1,I;bI,1

a1,I

bI,1

(4)

dotproda,b

0

(5)

dotproda,b,orthogonal

2I

(6)

See Also

evalc

linalg(deprecated)[crossprod]

linalg(deprecated)[innerprod]

LinearAlgebra

LinearAlgebra[DotProduct]

VectorCalculus[DotProduct]