2013-07-17 19:24:07 +02:00
|
|
|
A =
|
|
|
|
[[0,1]
|
|
|
|
[10,11]]
|
|
|
|
B =
|
|
|
|
[[0,2]
|
|
|
|
[1,3]]
|
|
|
|
(
|
|
|
|
[[0,1]
|
|
|
|
[10,11]] + (2 *
|
|
|
|
[[0,2]
|
|
|
|
[1,3]]))
|
|
|
|
-------
|
|
|
|
Cuboid of rank 2 and dimensions (2 2)
|
|
|
|
----EVAL ---
|
|
|
|
C = A + 2*B =
|
|
|
|
[[0,5]
|
|
|
|
[12,17]]
|
|
|
|
C = A+B =
|
|
|
|
[[0,3]
|
|
|
|
[11,14]]
|
|
|
|
Af =
|
|
|
|
[[0,1]
|
|
|
|
[10,11]]
|
|
|
|
Bf =
|
|
|
|
[[1,2]
|
|
|
|
[1,3]]
|
|
|
|
Cuboid of rank 2 and dimensions (2 2)
|
|
|
|
computing Cf = Af * Bf
|
|
|
|
Cf =
|
|
|
|
[[1,3]
|
|
|
|
[21,53]]
|
|
|
|
matrix( Af * Bf )
|
|
|
|
[[1,3]
|
|
|
|
[21,53]]
|
|
|
|
matrix( Af * (Bf + Cf) )
|
|
|
|
[[22,56]
|
|
|
|
[262,666]]
|
|
|
|
(A) --->
|
|
|
|
[[0,1]
|
|
|
|
[10,11]]
|
2013-09-29 21:05:17 +02:00
|
|
|
(make_matrix( 2*A )) --->
|
2013-07-17 19:24:07 +02:00
|
|
|
[[0,2]
|
|
|
|
[20,22]]
|
|
|
|
(A+ 2) ---> (
|
|
|
|
[[0,1]
|
|
|
|
[10,11]] + 2)
|
2013-09-29 21:05:17 +02:00
|
|
|
(make_matrix(A+2 )) --->
|
2013-07-17 19:24:07 +02:00
|
|
|
[[2,1]
|
|
|
|
[10,13]]
|
|
|
|
(make_matrix(1 + A )) --->
|
|
|
|
[[1,1]
|
|
|
|
[10,12]]
|
2013-09-29 21:05:17 +02:00
|
|
|
(make_vector( V2 + 2.0 *V)) ---> [12,24,36]
|
2013-07-17 19:24:07 +02:00
|
|
|
(Af) --->
|
|
|
|
[[0,1]
|
|
|
|
[10,11]]
|
|
|
|
(1/Af) ---> (1 * inverse(
|
|
|
|
[[0,1]
|
|
|
|
[10,11]]))
|
|
|
|
(make_matrix(2/Af)) --->
|
|
|
|
[[-2.2,0.2]
|
|
|
|
[2,0]]
|
|
|
|
(make_matrix(Af/2)) --->
|
|
|
|
[[0,0.5]
|
|
|
|
[5,5.5]]
|