solve
Syntax
solve(X, Y)
Arguments
X is a square matrix;
Y is a vector.
Details
It generates the vector b that solves X*b=Y.
Examples
m=1..4$2:2;
m;
#0 | #1 |
---|---|
1 | 3 |
2 | 4 |
m.solve(7 10);
// output
[1, 2]
solve(X, Y)
X is a square matrix;
Y is a vector.
It generates the vector b that solves X*b=Y.
m=1..4$2:2;
m;
#0 | #1 |
---|---|
1 | 3 |
2 | 4 |
m.solve(7 10);
// output
[1, 2]