verify/boolean
return a Boolean comparison or result
verify/truefalse
return a truefalse comparison or result
Calling Sequence
Parameters
Description
Examples
verify(expr1, expr2, boolean)
verify(expr1, expr2, boolean(ver))
verify(expr1, expr2, truefalse)
verify(expr1, expr2, truefalse(ver))
expr1, expr2
-
anything
ver
verification
The verify(expr1, expr2, boolean) and verify(expr1, expr2, truefalse) calling sequences perform an evalb comparison. That is, verify(a, b, boolean) = evalb(a = b) and verify(a, b, truefalse) = evalb(a = b).
If a verification ver is given, then boolean acts as a filter, converting anything returned by verify into either true, false, or FAIL.
The verification truefalse makes one further change, converting any FAIL results into false.
These are useful in case the result from verify is to be used as input to another procedure such as sort or select.
The verifications boolean and truefalse are symmetric and a verification boolean(ver) is symmetric if and only if the verification ver is symmetric. If a verification ver is symmetric, then this implies that the verification truefalse(ver) is symmetric.
evalbundefined=undefined
true
verifyundefined,undefined,boolean
verifyundefined,undefined,list
verifyx−12,x2−2x+1,boolean
false
verify3,3,list
verify3,3,booleanlist
verify0.3232,0.3233,float1
false,1.×106,ulps
verify0.3232,0.3233,booleanfloat1
verifysinx,0,greater_than
FAIL
verifysinx,0,booleangreater_than
verifysinx,0,truefalsegreater_than
mapverify,3,5,a,b,exp1,exp2,π,less_than
true,false,FAIL,FAIL,true,false
mapverify,3,5,a,b,exp1,exp2,π,truefalseless_than
true,false,false,false,true,false
See Also
evalb
type/verify
verify
Download Help Document