verify/record
verify whether two records are equal
Calling Sequence
Parameters
Description
Examples
Compatibility
verify(expr1, expr2, record)
verify(expr1, expr2, record(ver))
expr1, expr2
-
anything
ver
name; verification
The verify(expr1, expr2, record) calling sequence returns true if the expressions expr1 and expr2 are both of type record, and are equal as records. Two records are considered equal if they have the same slot names, and corresponding slot values are equal or unassigned.
The verify(expr1, expr2, record(ver)) calling sequence returns true if the expressions expr1 and expr2 are both of type record, and are equal with respect to the verification ver. For a list of verifications, see verify.
The special verifications %NULL, seq, and &, can be used to verify an expression sequence in a record. See verify/exprseq.
r≔Record⁡a=2,b=3:
s≔Record⁡a=2,b=4:
verify⁡r,r,record
true
verify⁡r,s,record
false
r≔Record⁡a=2,b=3,c:
s≔Record⁡a=2,b=3,c:
r≔Record⁡a=x2−1,b=3:
s≔Record⁡a=x−1⁢x+1,b=3:
verify⁡r,s,record⁡expand
The verify/record command was updated in Maple 2015.
See Also
expand
Record
verify
Download Help Document