boolean - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


verify/boolean

return a Boolean comparison or result

verify/truefalse

return a truefalse comparison or result

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

verify(expr1, expr2, boolean)

verify(expr1, expr2, boolean(ver))

verify(expr1, expr2, truefalse)

verify(expr1, expr2, truefalse(ver))

Parameters

expr1, expr2

-

anything

ver

-

verification

Description

• 

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.

Examples

> 

evalb⁡undefined=undefined

true

(1)
> 

verify⁡undefined,undefined,boolean

true

(2)
> 

verify⁡undefined,undefined,list

true

(3)
> 

verify⁡x−12,x2−2⁢x+1,boolean

false

(4)
> 

verify⁡3,3,list

false

(5)
> 

verify⁡3,3,boolean⁡list

false

(6)
> 

verify⁡0.3232,0.3233,float⁡1

false,1.×106,ulps

(7)
> 

verify⁡0.3232,0.3233,boolean⁡float⁡1

false

(8)
> 

verify⁡sin⁡x,0,greater_than

FAIL

(9)
> 

verify⁡sin⁡x,0,boolean⁡greater_than

FAIL

(10)
> 

verify⁡sin⁡x,0,truefalse⁡greater_than

false

(11)
> 

map⁡verify,3,5,a,b,exp⁡1,exp⁡2,π,less_than

true,false,FAIL,FAIL,true,false

(12)
> 

map⁡verify,3,5,a,b,exp⁡1,exp⁡2,π,truefalse⁡less_than

true,false,false,false,true,false

(13)

See Also

evalb

type/verify

verify