verify/Matrix - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Logic : Boolean : verify : verify/Matrix

verify/Matrix

verify a relation between two Matrices

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

verify(expr1, expr2, Matrix)

verify(expr1, expr2, 'Matrix'(ver))

Parameters

expr1, expr2

-

anything, assumed to be of type Matrix

ver

-

verification for the Matrix elements

Description

• 

The verify(expr1, expr2, Matrix) and verify(expr1, expr2, 'Matrix'(ver)) calling sequences return true if it can be determined that the Matrices satisfy a relation elementwise, either by testing for equality or by using the verification ver.

• 

If true is returned, then each of the pairs of elements satisfied the relation. If false is returned, then at least one pair of elements did not satisfy the relation (a result of type verify(false)). Otherwise, FAIL is returned, indicating that for at least one pair of elements it could not be determined whether or not they satisfied the relation (a result of type verify(FAIL)).

• 

The verification Matrix is symmetric and a verification 'Matrix'(ver) is symmetric if and only if the verification ver is symmetric.

• 

Since Matrix is a Maple function, it must be enclosed in single quotes to prevent evaluation.

• 

If either expr1 or expr2 is not of type Matrix, then false is returned.

• 

The special verifications %NULL, seq, and &, can be used to verify an expression sequence in a Matrix. See verify/exprseq.

Examples

u1Matrix2,2,1,x1x,3,4

u1:=1x1x34

(1)

u2Matrix2,2,1,x1x,3,4

u2:=1x1x34

(2)

evalbu1=u2

false

(3)

verifyu1,u2,'Matrix'

true

(4)

u3Matrix2,2,1,xx2,3,4

u3:=1x2+x34

(5)

verifyu1,u3,'Matrix'

false

(6)

verifyu1,u3,'Matrixexpand'

true

(7)

v1Matrix2,2,0.3222,0.5001,1.0320,0.9111

v1:=0.32220.50011.03200.9111

(8)

v2Matrix2,2,0.3223,0.5000,1.03205,0.911105

v2:=0.32230.50001.032050.911105

(9)

verifyv1,v2,'Matrix'

false

(10)

verifyv1,v2,'Matrixfloat106'

true

(11)

Compatibility

• 

The verify/Matrix command was updated in Maple 2015.

See Also

LinearAlgebra[Equal]

Matrix

verify

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam