verify/list - Maple Programming Help

Home : Support : Online Help : Programming : Logic : Boolean : verify : verify/list

verify/list

verify a relation between two lists

 Calling Sequence verify(expr1, expr2, list) verify(expr1, expr2, list(ver))

Parameters

 expr1, expr2 - anything, assumed to be of type list ver - verification for the list operands

Description

 • The verify(expr1, expr2, list) and verify(expr1, expr2, list(ver)) calling sequences return true if it can be determined that the two lists satisfy a relation operandwise, either by testing with equality or using the verification ver.
 • If true is returned, then each of the pairs of operands satisfied the relation. If false is returned, then at least one pair of operands did not satisfy the relation (a result of type verify(false)). Otherwise, FAIL is returned, indicating that for at least one pair of operands it could not be determined whether or not they satisfied the relation (a result of type verify(FAIL)).
 • The verification list is symmetric and a verification list(ver) is symmetric if and only if the verification ver is symmetric.
 • If either expr1 or expr2 is not of type list, then false is returned.

Examples

 > $\mathrm{verify}\left(\left[a,b,x\left(x-1\right)\right],\left[a,b,{x}^{2}-x\right],'\mathrm{list}'\right)$
 ${\mathrm{false}}$ (1)
 > $\mathrm{verify}\left(\left[a,b,x\left(x-1\right)\right],\left[a,b,{x}^{2}-x\right],'\mathrm{list}\left(\mathrm{expand}\right)'\right)$
 ${\mathrm{true}}$ (2)
 > $\mathrm{verify}\left(\left[0.32,0.45,0.92\right],\left[0.21,0.42,0.91\right],'\mathrm{list}'\left('\mathrm{less_than}'\right)\right)$
 ${\mathrm{false}}$ (3)
 > $\mathrm{verify}\left(\left[0.21,0.42,0.91\right],\left[0.32,0.45,0.92\right],'\mathrm{list}'\left('\mathrm{less_than}'\right)\right)$
 ${\mathrm{true}}$ (4)