linalg(deprecated)/GramSchmidt - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

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.

> 

with⁡linalg:

> 

v1≔vector⁡1,0,0

v1≔100

(1)
> 

v2≔vector⁡1,1,0

v2≔110

(2)
> 

v3≔vector⁡1,1,1

v3≔111

(3)
> 

GramSchmidt⁡v1,v2,v3

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

(4)
> 

u1≔vector⁡2,2,2

u1≔222

(5)
> 

u2≔vector⁡0,2,2

u2≔022

(6)
> 

u3≔vector⁡0,0,2

u3≔002

(7)
> 

GramSchmidt⁡u1,u2,u3

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

(8)
> 

GramSchmidt⁡u1,u2,u3,normalized

333333,−8⁢368⁢3128⁢312,0−2222

(9)

See Also

linalg(deprecated)[basis]

linalg(deprecated)[intbasis]

linalg(deprecated)[norm]

LinearAlgebra