linalg(deprecated)/GramSchmidt - Help

Online Help

All Products    Maple    MapleSim


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

linalg(deprecated)

  

GramSchmidt

  

compute orthogonal vectors

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

GramSchmidt([v1, v2, ... , vn], opt)

GramSchmidt({v1, v2, ... , vn}, opt)

Parameters

v[1], v[2], ..., v[n]

-

linearly independent vectors

opt

-

(optional) the word 'normalized'

Description

• 

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

  

- For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.

• 

The function GramSchmidt computes a list or set of orthogonal vectors from a given list or set of linearly independent vectors, using the Gram-Schmidt orthogonalization process.

• 

The vectors given must be linearly independent, otherwise the vectors returned will also be dependent.

• 

The vectors returned are normalized only if 'normalized' is specified.

• 

The command with(linalg,GramSchmidt) allows the use of the abbreviated form of this command.

Examples

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

withlinalg:

v1100

v1100

(1)

v2110

v2110

(2)

v3111

v3111

(3)

GramSchmidtv1,v2,v3

0,0,1,0,1,0,1,0,0

(4)

u1222

u1222

(5)

u2022

u2022

(6)

u3002

u3002

(7)

GramSchmidtu1,u2,u3

2,2,2,43,23,23,0,1,1

(8)

GramSchmidtu1,u2,u3,normalized

133133133,16831128311283,0122122

(9)

See Also

linalg(deprecated)[basis]

linalg(deprecated)[intbasis]

linalg(deprecated)[norm]

LinearAlgebra