Linear - Maple Help

Online Help

All Products    Maple    MapleSim


SolveTools

  

Linear

  

solve linear system of equations

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Linear(eqns, vars, meth, notz)

Parameters

eqns

-

list or set; system of equations

vars

-

list or set; variables to solve with respect to

meth

-

(optional) name of the form method=Method, where Method is one of the following: AlgebraicFunction, AlgebraicNumber, ComplexFloat, ComplexRational, Float, Polynomial, RadicalFunction, RadicalNumber, Rational or RationalAlgebraicFunction; the solution process to be used

notz

-

(optional) expressions that must not equal zero

Description

• 

The Linear command solves system of linear equations.

• 

Optional arguments can contain expressions which must not be zero, notz, and the method for solving the system.

  

If method is not specified, Linear tries to dispatch the solution process according to the type of the system. The possible methods correspond to the following types of equations (the check is performed in this order).

Rational - 'polynom'('rational', vars)

Float -'polynom'('numeric', vars)

ComplexRational - 'polynom'('complex'('rational'), vars)

ComplexFloat - 'polynom'('complex'('numeric'), vars)

Polynomial - 'ratpoly'('rational')

AlgebraicNumber - 'polynom'('algnum', vars)

RadicalNumber - 'ratpoly'('radnum', vars)

RationalAlgebraicFunction - 'ratpoly'('algnum')

AlgebraicFunction - 'algfun'('rational')

RadicalFunction - 'radfun'('rational')

• 

If the method is not specified or the system is not of one of the above types, Linear uses the default universal method, which is a primitive fraction-free algorithm.

• 

All algorithms are intended to be used on large sparse systems, however, they also perform well on dense systems.

• 

The algorithms used are Gaussian elimination with pivoting for stability for the numeric coefficients and primitive fraction-free for the algebraic and radical coefficients.

Examples

withSolveTools:

Linearx+y,xy2,x,y

x=1,y=−1

(1)

Linearx+y,xy2,x,y,y+1

Linearx+y5.,4x3y2,x,y

x=2.428571428,y=2.571428571

(2)

Linearx+y5,4x3y2I,x,y,method=ComplexFloat

x=2.428571428+0.1428571429I,y=2.5714285710.1428571428I

(3)

The following example returns NULL since the system has polynomials of y as coefficients and there is no x such that equations hold for all values of y.

Linearx+y5,4x3y2,x

Linearx+y+z512,4x3y2,x,y,z

x=12+3y4,y=y,z=127y4+5

(4)

Linearx+2RootOfv2w,vwy,5xw3y+7,x,y

x=14w10w33RootOf_Z2w100w59,y=710RootOf_Z2ww23100w59

(5)

See Also

SolveTools