linalg(deprecated)/GramSchmidt - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

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:

v1vector1,0,0

v1100

(1)

v2vector1,1,0

v2110

(2)

v3vector1,1,1

v3111

(3)

GramSchmidtv1,v2,v3

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

(4)

u1vector2,2,2

u1222

(5)

u2vector0,2,2

u2022

(6)

u3vector0,0,2

u3002

(7)

GramSchmidtu1,u2,u3

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

(8)

GramSchmidtu1,u2,u3,normalized

333333,83683128312,02222

(9)

See Also

linalg(deprecated)[basis]

linalg(deprecated)[intbasis]

linalg(deprecated)[norm]

LinearAlgebra