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.
evalb⁡undefined=undefined
true
verify⁡undefined,undefined,boolean
verify⁡undefined,undefined,list
verify⁡x−12,x2−2⁢x+1,boolean
false
verify⁡3,3,list
verify⁡3,3,boolean⁡list
verify⁡0.3232,0.3233,float⁡1
false,1.×106,ulps
verify⁡0.3232,0.3233,boolean⁡float⁡1
verify⁡sin⁡x,0,greater_than
FAIL
verify⁡sin⁡x,0,boolean⁡greater_than
verify⁡sin⁡x,0,truefalse⁡greater_than
map⁡verify,3,5,a,b,exp⁡1,exp⁡2,π,less_than
true,false,FAIL,FAIL,true,false
map⁡verify,3,5,a,b,exp⁡1,exp⁡2,π,truefalse⁡less_than
true,false,false,false,true,false
See Also
evalb
type/verify
verify
Download Help Document