linalg(deprecated)/cond - Help

Online Help

All Products    Maple    MapleSim


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

linalg(deprecated)

  

cond

  

condition number of a matrix

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

cond(A)

cond(A, normname)

Parameters

A

-

square matrix

normname

-

(optional) matrix norm, must be one of: 1, 2, 'infinity', or 'frobenius'.

Description

• 

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

  

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

• 

The function cond computes the ``standard'' matrix condition number, defined as norm(A) * norm(inverse(A)). The matrix norm is the default employed by the linalg[norm] function, namely the infinity norm (maximum row sum).

• 

More generally, cond(A, normname) computes norm(A, normname) * norm(inverse(A), normname). This is the same measure, but using the specified norm instead of the infinity norm.

• 

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

Examples

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

withlinalg:

Barray1..2,1..2,identity

B1001

(1)

condB

1

(2)

Amatrix3,3,1,0,3,4,2,0,0,3,2

A103420032

(3)

condA,1

3

(4)

See Also

linalg(deprecated)[norm]

LinearAlgebra

LinearAlgebra[ConditionNumber]