ArrayTools
IsEqual
compare Arrays for equality
Calling Sequence
Parameters
Description
Examples
IsEqual(Array1, Array2, ...)
IsEqual(Array1, Array2, ..., equalundefined)
Array1, Array2
-
Arrays to be compared, more Arrays are optional
equalundefined
(optional) treat undefined elements in Arrays as equal
The IsEqual(Array1, Array2, ...) function compares two or more arrays for equality with undefined elements treated as inequal.
The option equalundefined causes the function to treat undefined elements as equal. The default value is false.
This function is part of the ArrayTools package, so it can be used in the short form IsEqual(..) only after executing the command with(ArrayTools). However, it can always be accessed through the long form of the command by using ArrayTools[IsEqual](..).
with⁡ArrayTools:
a≔Array⁡1,2,3,4
a≔1234
b≔Array⁡1,2,3,4
b≔1234
c≔Array⁡1,2,3,undefined
c≔123undefined
d≔Array⁡1,2,3,undefined
d≔123undefined
IsEqual⁡a,b
true
IsEqual⁡c,d
false
IsEqual⁡c,d,equalundefined
See Also
ArrayTools[RandomArray]
ArrayTools[RegularArray]
ArrayTools[Size]
Download Help Document