isSolvable (Matrix)

Checks if the system of linear equations xM=b is solvable.

Arguments

Coefficient

matrix
(see Matrix).
vector
of free terms (see Vector).

Return values

condition
is TRUE if the system of equations is solvable, FALSE otherwise.

Complexity

O(size^3)

Example

"sl/algebra" useFile m1: ((2.0 1.0 1.0) (-5.0 1.0 2.0) (-1.0 0.666666 1.0)) makeMatrix; m2: ((3.0 1.0) (1.0 2.0) (2.0 1.0)) makeMatrix; m1 (1.0 3.0 2.0) makeVector isSolvable print LF print m1 (-8.0 3.0 5.0) makeVector isSolvable print LF print m2 (1.0 1.0) makeVector isSolvable print
Output:
FALSE TRUE TRUE