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

Online Help

All Products    Maple    MapleSim


SolveTools[LinearSolvers]

  

RationalDense

  

fast linear solve over the field of rational numbers

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

RationalDense(eq, var)

RationalDense(eq, var, skiptest)

Parameters

eq

-

list or set of equations linear in var with rational coefficients

var

-

list or set of variables for eq

Description

• 

The RationalDense command computes the solution(s) of the input dense rational linear system. If there exist no solutions NULL is returned. It follows the same form of input and output as SolveTools:-Linear.

• 

If the option skiptest is given, any correctness checks are skipped and the answer has a small chance of being incorrect. it should only be used if the user has an efficient way to check the answer in their result. (The test is not slow, but does generally take several times more computation time than the rest of the computation.)

• 

For more details on the underlying algorithm, see RationalDenseNullSpace which does the work.

Examples

withSolveToolsLinearSolvers:

Basic system

sysx+y=2,xy=0:

varsx,y:

RationalDensesys,vars

x=1,y=1

(1)

No solution

sysx+y=2,2x+2y=0:

varsx,y:

RationalDensesys,vars

Multiple solutions

sysx+y=2,2x+2y=4:

varsx,y:

RationalDensesys,vars

x=2y,y=y

(2)

See Also

SolveTools:-Linear

SolveTools:-LinearSolvers:-RationalDenseNullSpace