Function: math[isFilled] - checks whether all elements in a vector/list are of a specific value
Calling Sequence:
isFilled(v, n);
Parameters:
v - an array or a list
n - any algebraic expression
Description:
isFilled checks whether all elements in the one-dimensional array v (a row or column vector) or in the list v equal n. If all elements in v have been found to be n, then isFilled returns true and false otherwise.
This function is part of the math package, and so can be used only after performing the command with(math) or with(math, isFilled).
Examples:
> with(math):
> isFilled(V(0, 0, 0), 0);
> A := mat(`0 -a 7; a 0 -8; -7 8 0`);
> isFilled(mainDiagonal(A), 0);
> isFilled([1, 2, 3], 0);
See Also:
math/isIdentity , math/isDiagonal , math/isSymmetric , math/isAntiSymmetric , math/isQuadratic .
Version History:
Version 1.0 - March 20, 1998