LinearAlgebra - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Linear Algebra : LinearAlgebra Package : VectorSpaces : LinearAlgebra/GramSchmidt

LinearAlgebra

  

GramSchmidt

  

compute an orthogonal set of Vectors

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

GramSchmidt(V, c, n, options)

Parameters

V

-

list or set of Vector(s)

c

-

(optional) BooleanOpt(conjugate)

n

-

(optional) BooleanOpt(normalized)

options

-

(optional); constructor options for the result object

Description

• 

The GramSchmidt(V) function computes a list or set of orthogonal Vectors by using the Gram-Schmidt orthogonalization process. If V is an empty list or set, GramSchmidt(V) returns an empty list or set, respectively.

• 

The number of Vectors returned is the dimension of the vector space spanned by V.  In particular, if the Vectors in V are not linearly independent, fewer Vectors than the number in V are returned.

• 

The dimension and orientation of all Vectors in V must be the same.

• 

The conjugate option (c) is true by default. If conjugate=false is included in the calling sequence, the elements of the second Vector are not conjugated in the dot product calculations.

  

The condition conjugate=true can be abbreviated to conjugate.  See type[BooleanOpt].

• 

The normalized option (n) is false by default.  If normalized=true is included in the calling sequence, this function returns an orthonormal list or set of Vectors.

  

The condition normalized=true can be abbreviated to normalized.

• 

The constructor options provide additional information (readonly, shape, storage, order, datatype, and attributes) to the Vector constructor that builds the result. These options may also be provided in the form outputoptions=[...], where [...] represents a Maple list.  If a constructor option is provided in both the calling sequence directly and in an outputoptions option, the latter takes precedence (regardless of the order).  If constructor options are specified in the calling sequence, each resulting Vector has the same specified options.

• 

This function is part of the LinearAlgebra package, and so it can be used in the form GramSchmidt(..) only after executing the command with(LinearAlgebra). However, it can always be accessed through the long form of the command by using LinearAlgebra[GramSchmidt](..).

Examples

withLinearAlgebra:

w12,1,0,1:

w21,0,2,1:

w30,2,1,0:

ordGramSchmidtw1,w2,w3

ord:=2101,012212,2343130

(1)

DotProductord2,ord3

0

(2)

DotProductord1,ord3

0

(3)

GramSchmidtw1,w2,w3,normalized

1361660166,0162232162,2212142121121210

(4)

GramSchmidt1|b,1|0

1b,11+bb&conjugate0;+1b1+bb&conjugate0;

(5)

GramSchmidt1|b,1|0,conjugate=false

1b,1b2+1+1bb2+1

(6)

See Also

LinearAlgebra[Basis]

LinearAlgebra[LUDecomposition]

type[BooleanOpt]

Vector

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam