verify
relation verification procedure
Calling Sequence
Parameters
Description
Examples
verify(a, b)
verify(a, b, ver)
a
-
any expression
b
ver
(optional) verification
The verify procedure is a semi-Boolean valued procedure that checks a relationship between two objects a and b. By default, the relationship checked is simple equality (evalb). When verification ver is specified, true is returned in the case where the relationship exists. Otherwise a negative result in a standard form is returned (see type/verify).
When ver is specified as a set of verifications, the value returned is true when a and b satisfy the relation for any one of the verifications in the set. Otherwise, false is returned.
A verification ver is said to be symmetric if it is true that verify(a, b, ver) = verify(b, a, ver) for all possible values a and b. The two argument form of verify is symmetric since it is true that evalb⁡a=b if and only if evalb⁡b=a.
In addition to the structured verifications (see verify/structured), the following verification names are defined in Maple:
after
And
Array
array
as_list
as_multiset
as_set
boolean
dataframe
dataseries
equal
evalc
expand
exprseq
float
function_bounds
function_shells
Global
greater_equal
greater_than
interval
less_equal
less_than
list
listlist
Matrix
matrix
member
multiset
neighborhood
normal
Not
Or
permute_elements
plot
plot3d
polynom
range
record
relation
reverse
RootOf
set
sign
simplify
sublist
subset
superlist
superset
symbol
table
testeq
truefalse
type
units
Vector
vector
wildcard
In addition, the three trivial verifications true, false, and FAIL will always return that result.
Note: If a verification name is an operator, it must be back-quoted to prevent a syntax error. See the examples below.
For more information, see verify/datatype, where datatype is one of the names in the above list.
In Maple, some objects return a different result from what may be expected when compared with evalb. For example, 0 and 0. compare equally under evalb, but [0] and [0.] do not.
For information on using structured verification expressions, see verify/structured.
verify⁡23,5,greater_than
true
verify⁡Array⁡1..3,1,2,3,Array⁡1,2,3,readonly,Array
verify⁡a,b,x⁢x−1,a,b,x2−x,list
false
verify⁡a,b,x⁢x−1,a,b,x2−x,list⁡expand
evalb⁡min⁡a,b,x⁢x−1=min⁡a,b,x2−x
verify⁡min⁡a,b,x⁢x−1,min⁡a,b,x2−x,as_list⁡expand,min
verify⁡2,3,4,412+3,1,2,3,4,5,`subset`⁡simplify
verify⁡true,912,x+1⁢x−1,true,3,x2−1,boolean,simplify,normal
verify⁡2.203,2.205,3.375,9.23,2.204,3.374,9.231,set⁡float⁡106
evalb⁡undefined=undefined
verify⁡undefined,undefined,list
evalb⁡0=0.
verify⁡0,0.,set
See Also
evalb
type/verification
type/verify
verify/structured
Download Help Document