Using The Matrices Palette in S Math Studio
Using The Matrices Palette in S Math Studio
Using The Matrices Palette in S Math Studio
sm
3
5
2
3
5
7
By using the "Matrix" button, or the command "Cntl+M", we can also define
other matrices such as the 5x4 matrix A and the 6x6 matrix B shown below.
5
2
4 7
7 2
2 8
6 2
3
0
3
3
4
8
3
5
5
9
2
3
6
9
3
6
1/7
8 3
1
5
8 6
3 5
8 0
0
7
5
6 3
4 4 2
1 8 8
6 8 7
9
7 8
4
1 2
3 5
5 7
5
4 7
2 6
2 7 2
8 2
3 0 3 3
4
8 3
5 5 9
2
8
3
5
6
3
3
1
5
4
4
2
6 9
8
3
6
5
1 6
8 8
8 7
3
8
0
9
7
8
6
0
7
4
1
2
23
22763
23
22763
2/7
23
2
8 5
6 3
6 8
1 8 8
9
3 6 8 7
3 8 9
7 8
6 0 4
1 2
Calculating a cross-product
--------------------------A cross product, or vector product, can be performed only on column
vectors of three elements, such as vectors u and v defined above.
To perform a cross product, click somewhere in your worksheet, and press
the "Cross product" button in the "Matrices" palette. This will produce
two placeholders separated by the multiplication symbol (x). Fill the
placeholders with the name of vectors previously defined, or insert
vectors using the "Matrix (Cntl+M)" button in the "Matrices" palette,
and then enter the equal sign (=). Here are some examples:
u v
25
27
30
v u
25
27
30
0.0225 0.1042
0.0943 0.0505
0.0664 0.0368
0.0687 0.1276
0.0058 0.1623
0.0304 0.0099
B B
B B
4
5
3
14
9
9
5
2
3
1
12
2
3 14
9 9
3 1 12 2
12
6 8 1
6 12 17 11
8 17
14 7
1 11 7 4
147
15
99
0
41
65
15
71
40
71
23
69
99 0
41 65
40
71
23 69
265 126 45
2
126 264 105 71
45
105 267 41
2 71
41 106
B B
3/7
0 11 9 4
11 0 13 7
9 13 0 4
4 7 4 0
3
4 8 1
3 2 15 3
1
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
0
0
0
1
3
4
8
1
0
9
3
2
15
3
9
0
3 B 5 B
4 39
49
2
33 49
2
29
21 4
3
10
, or,
C
39 30 3 21
55 27
28 6
12 22 24 59
10 12
21 1
40 13 14 29
61 23 43 4
diag u
3 0 0
0 5 0
0 0 2
3 0 0
0 5 0
0 0 7
diag v
identity 3
1 0 0
0 1 0
0 0 1
1
0
0
0
identity 4
0
1
0
0
0
0
1
0
0
0
0
1
matrix 3 , 4
0 0 0 0
0 0 0 0
0 0 0 0
matrix 4 , 4
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
3
5
2
2
3
6
9
3
6
reverse u
8 3
1
5
8 6
3 5
8 0
0
7
5
6 3
4 4 2
1 8 8
6 8 7
9
7 8
4
1 2
2
5
3
reverse B
4/7
6
3
9
6
3
2
0
7
8 0
3 5
8 6
1
5
8 3
4
1 2
9
7 8
6 8 7
1 8 8
4 4 2
5
6 3
5 4 4
6
1 8
5 6 8
submatrix B , 2 , 4 , 3 , 5
,i.e.,
col A , 3
8
1
8
3
8
0
col B , 2
row A , 2
7 0 3
row B , 3
6 8 6
1 8 8
3
5
2
3
5
7
augment u , v
3 3
5
5
2 7
3 5
5 7
stack u
,v
3 5
2
3 5 7
5/7
*
*
*
*
*
*
*
*
*
*
*
*
length B
36
norm1 A
rank A
rows A
30
max B
tr B
23
norme A
min B
22.4054
normi A
21
8 3
1
5
8 6
3 5
8 0
0
7
5
6 3
4 4 2
1 8 8
6 8 7
9
7 8
4
1 2
csort B , 3
6
3
9
2
3
6
0
7
1
5
3 5
8 3
8 0
8 6
4
1 2
4 4 2
6 8 7
5
6 3
9
7 8
1 8 8
2
3
6
9
3
6
8 3
1
5
8 6
3 5
8 0
0
7
5
6 3
4 4 2
1 8 8
6 8 7
9
7 8
4
1 2
rsort B , 4
6/7
5
3
4
5
1 6
6 5
9 0
4
7
8
1
8
3
8
0
3 6
2 4
8 8
7 8
8 7
2 1
2
3
6
9
3
6
3
5
7
sort v
5
3
7
3
5
2
7/7
sort u
2
3
5