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

Online Help

All Products    Maple    MapleSim


LinearAlgebra

  

GenerateEquations

  

generate equations from the coefficient Matrix

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

GenerateEquations(A, v, B)

Parameters

A

-

m x n Matrix

v

-

list; specifies the n unknowns

B

-

(optional) m x 1 Vector

Description

• 

The GenerateEquations(A, v) function generates a list of linear equations from the coefficient Matrix A, using the variable names given in v.

  

If the optional m x 1 right-hand side Vector B is included in the calling sequence, then the list of linear equations is equivalent to the Matrix equation A·x=B, where the x[i] are equal to the corresponding v[i].  In this case, v must specify exactly n unknowns.

  

If the optional right-hand side Vector B is not included in the calling sequence, and v specifies exactly n unknowns, then the right-hand sides of the m linear equations are set to zero.  The list of equations is then equivalent to A·x=ZeroVectorm.

  

If the optional right-hand side Vector B is not included in the calling sequence, and v specifies exactly n-1 unknowns, then the right-hand sides of the m linear equations are taken from the last column of the Matrix A.  That is, the Matrix A is treated as an augmented matrix. The list of equations is then equivalent to A1..−1,1..−2·x=A1..−1,−1.

• 

This function is part of the LinearAlgebra package, and so it can be used in the form GenerateEquations(..) only after executing the command with(LinearAlgebra). However, it can always be accessed through the long form of the command by using LinearAlgebra[GenerateEquations](..).

Examples

withLinearAlgebra:

VTransposeVandermondeMatrix1,2,3,4

V1111123414916182764

(1)

GenerateEquationsV,w,x,y,z,0,1,3,35

w+x+y+z=0,w+2x+3y+4z=−1,w+4x+9y+16z=3,w+8x+27y+64z=35

(2)

UseHardwareFloatsfalse:

A0.40,0.10,0.50|0.20,0.70,0.10|0.20,0.20,0.60

A0.400.200.200.100.700.200.500.100.60

(3)

GenerateEquationsA1,v1,v2,v3

0.60v1+0.20v2+0.20v3=0,0.10v10.30v2+0.20v3=0,0.50v1+0.10v20.40v3=0

(4)

Ba,c|b,d|1,1

Bab1cd1

(5)

GenerateEquationsB,x,y

ax+by=1,cx+dy=1

(6)

See Also

LinearAlgebra[GenerateMatrix]

LinearAlgebra[LinearSolve]

LinearAlgebra[ZeroVector]

Matrix

Vector