linear
This function solves a linear equation system A • x = B
Indirect parameter passing is disabled
2
No. | Type | Description |
---|---|---|
1 input |
matrix of numerals | Matrix A 2-dimensional matrix |
2 input |
matrix of numerals set of numerals |
Vector B Following represenations of the 1-D vector are allowed: As vector:{1,2,3}, 1-row matrix: {{1,2,3}}, 1-column matrix: {{1},{2},{3}} |
Type | Description |
---|---|
set of numerals | Solution vector x |
Division: Matrix is not a square (number of rows and columns differ)
echo( linear( {{1,2},{3,4}}, {5,6} ) ); // returns {-4,4.5}
{-4,4.5}