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

Online Help

All Products    Maple    MapleSim


verify/superlist

verify that the first list is a superlist of the second

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

verify(expr1, expr2, superlist)

verify(expr1, expr2, superlist(ver))

Parameters

expr1, expr2

-

anything, assumed to be of type list

ver

-

verification for the list operands

Description

• 

The verify(expr1, expr2, superlist) and verify(expr1, expr2, superlist(ver)) calling sequences return true if it can be determined that the first list contains the second list as a sublist, where this relationship is satisfied operandwise, either by testing with equality or using the verification ver.

• 

If true is returned, then for one sublist of the first list, each of the pairs of operands satisfied the relation. If false is returned, then for all sublists of the first list at least one pair of operands did not satisfy the relation (a result of type verify(false)). Otherwise, FAIL is returned, indicating that for every sublist at least one pair of operands it could not be determined whether or not they satisfied the relation (a result of type verify(FAIL)).

• 

This verification is not symmetric.

• 

If either expr1 or expr2 is not of type list, then false is returned.

Examples

verifya,b,c,d,e,a,b,c,superlist

true

(1)

verifya,b,c,d,e,a,b,c,f,superlist

false

(2)

verifya,b,x2x,a,b,xx1,superlist

false

(3)

verifya,b,x2x,a,b,xx1,superlistexpand

true

(4)

verifya,b,x2x,c,a,b,xx1,superlistexpand

true

(5)

verify0.2334,0.102221,0.2333,0.10222,superlist

false

(6)

verify0.2334,0.102221,0.2333,0.10222,superlistfloat106

true

(7)

See Also

list

verify

verify/list

verify/sublist

verify/superset