Group Abstract Group Abstract

Message Boards Message Boards

0
|
5.7K Views
|
2 Replies
|
1 Total Like
View groups...
Share
Share this post:

How to obtain 3x3 matrices as output from the computation of 2x2 matrices

Posted 4 years ago

Please help me to achieve the 3 x 3 from the steps I undertook. I did line1 since ad A1 (2 x 2 matrix). I attempted to equate line 2, hoping to get line 3 (output which is 3 x 3 matrix). I attempted to equate line 2, hoping to get line 3 (output which is 3 x 3 matrix). I added the 'commented out' part of the code which I suspect it is a direction in moving from a 2x2 to 3x3 matrix, it's just that I don't have the right Mathematica syntax. See attachment. matrix_computation1

(*_____ This is how one enters the input : {A1={{1,0},{0,-1}}, \
A2={{0,1},{0,0}}, A3={{0,0},{1,0}}}  __________*)

(*_____ Note that the order in which one inputs matters  _______*)
newlistSym = Input["Please input a basis in a list form"];
dim = Length[newlistSym];
AdjointMatrixCommutator[A1, A3] = Dot[A1, A3] - Dot[A3, A1]
(* adA3 = AdjointMatrixCommutator[A1,A3] == Table[c[1, 3, k], {k, 1, \
dim}]*)
AdjointMatrixCommutator[A1, A2] = Dot[A1, A2] - Dot[A2, A1]
(*ad A2 = AdjointMatrixCommutator[A1,A2] == c[1, 2, k], {k, 1, dim}*)
AdjointMatrixCommutator[A1, A1] = Dot[A1, A1] - Dot[A1, A1]
(*ad A1 = AdjointMatrixCommutator[A1,A3] == c[1, 1, k], {k, 1, dim}*)
Attachments:
POSTED BY: Nomsa Ledwaba
2 Replies
Posted 4 years ago

Thank you for responding.
The reason of doing duplication for each computation was to show that the outputs were correct, however, the outputs must be in a 3 x 3 matrix. So that means for , the output ad[A3] should be

ad [A3] = {{0, 0, 0}, {0, 2, 0}, {0, 0, - 2}}

ad [A2] = {{0, 0, 0}, { 0, 2, 0}, {0, 0, 0}} 
ad [A1] = {{0, 0, 0}, {0, 0, 0}, {0, 0, 0}}

See updated attachment. For the rest of the code in terms of using functions you are very correct and I appreciate your helpful input. If I used a similar definition of function array

adjointMatrixCommutator[x_, newlistSym _] := 
 Module[{vars, f}, vars = Array[f, Length[newlistSym ]]

in the earlier part of the code wouldn't that confuse the rest of the code or is it a subsequent computation?

POSTED BY: Nomsa Ledwaba
POSTED BY: Ta'a Nwa Dombou
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard