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

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : convert/setofequations

convert/setofequations

convert a matrix equality into a set of equations

convert/listsofequations

convert a matrix equality into a list of equations

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

convert(E, setofequations)

convert(E, listofequations)

Parameters

E

-

any Maple object, typically a Matrix, a Vector, possibly from the Physics:-Vectors package, or an expression or equation involving them

Description

• 

The convert/setofequations function converts an equality between matrices into a set of equations equating the matrix components, or an equality between Vectors, typically from the Physics:-Vectors package, into an set of equations for the components of these vectors. When only one object (Matrix or vector) is passed, in the set of equations returned all the components are equated to 0.

• 

The convert/listofequations works the same way as convert/setofequations but the output is a list instead of a set. In the case of an equation of matrices, the list is ordered from line to columns (see the Examples).

Examples

M,NMatrix3,symbol=m,Matrix3,symbol=n

M,Nm1,1m1,2m1,3m2,1m2,2m2,3m3,1m3,2m3,3,n1,1n1,2n1,3n2,1n2,2n2,3n3,1n3,2n3,3

(1)

convertM=N,setofequations

m1,1=n1,1,m1,2=n1,2,m1,3=n1,3,m2,1=n2,1,m2,2=n2,2,m2,3=n2,3,m3,1=n3,1,m3,2=n3,2,m3,3=n3,3

(2)

convertM=N,listofequations

m1,1=n1,1,m2,1=n2,1,m3,1=n3,1,m1,2=n1,2,m2,2=n2,2,m3,2=n3,2,m1,3=n1,3,m2,3=n2,3,m3,3=n3,3

(3)

When a single matrix is passed, each element is equated to 0 and the related set or list is returned.

convertM,listofequations

m1,1=0,m1,2=0,m1,3=0,m2,1=0,m2,2=0,m2,3=0,m3,1=0,m3,2=0,m3,3=0

(4)

Converting vectorial equations:

V1a,b,c

V1abc

(5)

V2A,B,C

V2ABC

(6)

convertV1=V2,setofequations

a=A,b=B,c=C

(7)

Vectorial equations with vectors of the Physics package are also handled:

withPhysics:-Vectors:Setupmathematicalnotation=true:

A_Ax_i+Ay_j+Az_k

AAxi+Ayj+Azk

(8)

B_Bx_i+By_j+bz_k

BBxi+Byj+bzk

(9)

convertA_=B_,setofequations

Ax=Bx,Ay=By,Az=bz

(10)

See Also

convert

list

Matrix

Physics

Physics:-Vectors

set

Vector