IsEqual - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


ArrayTools

  

IsEqual

  

compare Arrays for equality

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

IsEqual(Array1, Array2, ...)

IsEqual(Array1, Array2, ..., equalundefined)

Parameters

Array1, Array2

-

Arrays to be compared, more Arrays are optional

equalundefined

-

(optional) treat undefined elements in Arrays as equal

Description

• 

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](..).

Examples

withArrayTools:

aArray1,2,3,4

a1234

(1)

bArray1,2,3,4

b1234

(2)

cArray1,2,3,undefined

c123undefined

(3)

dArray1,2,3,undefined

d123undefined

(4)

IsEquala,b

true

(5)

IsEqualc,d

false

(6)

IsEqualc,d,equalundefined

true

(7)

See Also

ArrayTools

ArrayTools[RandomArray]

ArrayTools[RegularArray]

ArrayTools[Size]