|
Contents | Previous | Next | Subchapters |
| Syntax |
left value \ right value
|
| See Also | matrix multiplication , element-by-element division , inv |
print 5 \ [ 2.0 , 3.0 ]
O-Matrix will respond
[ 0.4 , 0.6 ]
A x = b
using the matrix divide operator (\).
For example, to solve the system of equations
2 x + 3 y = 4
3 x + 5 y = 2
which can be represented as
/ 2 3 \ / x \ / 4 \
| | | | = | |
\ 3 5 / \ y / \ 2 /
enter
A = {[2., 3.], [3., 5.]}
b = {4., 2.}
A \ b
O-Matrix will then respond
{
14
-8
}
4 x = 2
3 x = 2
enter
A = {4., 3.}
b = {2., 2.}
A \ b
to which O-Matrix will respond
0.56
This is the solution to the problem
2 2
minimize (4 x - 2) + (3 x - 2) with respect to x
If the left value is not a scalar,
the row dimensions of the left and right values must be equal.
In this case, the row dimension of the result is equal to the
column dimension of the left value.
The column dimension of the result is equal to the
column dimension of the right value.