record - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


verify/record

verify whether two records are equal

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

verify(expr1, expr2, record)

verify(expr1, expr2, record(ver))

Parameters

expr1, expr2

-

anything

ver

-

name; verification

Description

• 

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.

Examples

rRecorda=2,b=3:

sRecorda=2,b=4:

verifyr,r,record

true

(1)

verifyr,s,record

false

(2)

rRecorda=2,b=3,c:

sRecorda=2,b=3,c:

verifyr,s,record

true

(3)

rRecorda=x21,b=3:

sRecorda=x1x+1,b=3:

verifyr,s,recordexpand

true

(4)

Compatibility

• 

The verify/record command was updated in Maple 2015.

See Also

expand

Record

verify