矩陣的乘法
Author: 黃立中

a_{11}=

a_{12}=

a_{13}=

a_{21}=

a_{22}=

a_{23}=

a_{31}=

a_{32}=

a_{33}=

b_{11}=

b_{12}=

b_{13}=

b_{21}=

b_{22}=

b_{23}=

b_{31}=

b_{32}=

b_{33}=

a11 = 2 (slider from -5 to 5, step 1)
a12 = 5 (slider from -5 to 5, step 1)
a13 = 4 (slider from -5 to 5, step 1)
a21 = -5 (slider from -5 to 5, step 1)
a22 = 5 (slider from -5 to 5, step 1)
a23 = 5 (slider from -5 to 5, step 1)
a31 = 2 (slider from -5 to 5, step 1)
a32 = 5 (slider from -5 to 5, step 1)
a33 = 5 (slider from -5 to 5, step 1)
b11 = 3 (slider from -5 to 5, step 1)
b12 = 2 (slider from -5 to 5, step 1)
b13 = 5 (slider from -5 to 5, step 1)
b21 = -2 (slider from -5 to 5, step 1)
b22 = -1 (slider from -5 to 5, step 1)
b23 = 1 (slider from -5 to 5, step 1)
b31 = 5 (slider from -5 to 5, step 1)
b32 = -1 (slider from -5 to 5, step 1)
b33 = -4 (slider from -5 to 5, step 1)
text1: "$\left [\begin{array}{} " + (LaTeX[a11]) + " &" + (LaTeX[a12]) + " & " + (LaTeX[a13]) + " \\ " + (LaTeX[a21]) + " & " + (LaTeX[a22]) + " & " + (LaTeX[a23]) + "\\ " + (LaTeX[a31]) + " &" + (LaTeX[a32]) + " &" + (LaTeX[a33]) + "  \\ \end{array}  \right ]  \left [  \begin{array}{} " + (LaTeX[b11]) + " & " + (LaTeX[b12]) + " &" + (LaTeX[b13]) + " \\ " + (LaTeX[b21]) + " & " + (LaTeX[b22]) + " &" + (LaTeX[b23]) + "  \\ " + (LaTeX[b31]) + " &" + (LaTeX[b32]) + " & " + (LaTeX[b33]) + " \\ \end{array}\right ] =\left [ \begin{array}{cc} " + (LaTeX[a11 * b11 + a12 * b21 + a13 * b31]) + " & " + (LaTeX[a11 * b12 + a12 * b22 + a13 * b32]) + " & " + (LaTeX[a11 * b13 + a12 * b23 + a13 * b33]) + " \\ " + (LaTeX[a21 * b11 + a22 * b21 + a23 * b31]) + " &" + (LaTeX[a21 * b12 + a22 * b22 + a23 * b32]) + " & " + (LaTeX[a21 * b13 + a22 * b23 + a23 * b33]) + " \\ " + (LaTeX[a31 * b11 + a32 * b21 + a33 * b31]) + " & " + (LaTeX[a31 * b12 + a32 * b22 + a33 * b22]) + " &" + (LaTeX[a31 * b13 + a32 * b23 + a33 * b33]) + " \\ \end{array} \right ]   $"
inputBox1 = Textfield(a11)
inputBox2 = Textfield(a12)
inputBox3 = Textfield(a13)
inputBox4 = Textfield(a21)
inputBox5 = Textfield(a22)
inputBox6 = Textfield(a23)
inputBox7 = Textfield(a31)
inputBox8 = Textfield(a32)
inputBox9 = Textfield(a33)
inputBox10 = Textfield(b11)
inputBox11 = Textfield(b12)
inputBox12 = Textfield(b13)
inputBox13 = Textfield(b21)
inputBox14 = Textfield(b22)
inputBox15 = Textfield(b23)
inputBox16 = Textfield(b31)
inputBox17 = Textfield(b32)
inputBox18 = Textfield(b33)