Function: math[isIdentity] - checks for an identity matrix

Calling Sequence:

isIdentity(A);

Parameters:

A - an array

Description:

isIdentity checks whether A (an array or matrix ) is an identity matrix. If so, it returns true and false otherwise. If an array has been defined using the identity property , isIdentity returns true, as well.

This function is part of the math package, and so can be used only after performing the command with(math) or with(math, isIdentity).

Examples:

> with(math);

> A := dim(3, 3, id);

[Maple Math]

> isIdentity(A);

[Maple Math]

> A[3, 1] := 1: eval(A);

[Maple Math]

> isIdentity(A);

[Maple Math]

See Also:

math/isDiagonal , math/isSymmetric , math/isAntiSymmetric , math/isQuadratic .

Version History:

Version 1.0 - March 16, 1998