generate equations from the coefficient Matrix - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Linear Algebra : LinearAlgebra Package : Solvers : LinearAlgebra/GenerateEquations

LinearAlgebra[GenerateEquations] - generate equations from the coefficient Matrix

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:

V:=TransposeVandermondeMatrix1,2,3,4

V:=1111123414916182764

(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)

UseHardwareFloats:=false:

A:=0.40,0.10,0.50|0.20,0.70,0.10|0.20,0.20,0.60

A:=0.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)

B:=a,c|b,d|1,1

B:=ab1cd1

(5)

GenerateEquationsB,x,y

ax+by=1,cx+dy=1

(6)

See Also

LinearAlgebra[GenerateMatrix], LinearAlgebra[LinearSolve], LinearAlgebra[ZeroVector], Matrix, Vector


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