矩陣的乘法
Author: 曾千嘉

a_{11}=

a_{12}=

a_{13}=

b_{21}=

b_{22}=

b_{23}=

c_{31}=

c_{32}=

c_{33}=

d_{11}=

d_{12}=

d_{13}=

a1 = 4 (slider from -5 to 5, step 1)
a2 = 3 (slider from -5 to 5, step 1)
a3 = -1 (slider from -5 to 5, step 1)
b1 = -2 (slider from -5 to 5, step 1)
b2 = 5 (slider from -5 to 5, step 1)
b3 = 1 (slider from -5 to 5, step 1)
c1 = 4 (slider from -5 to 5, step 1)
c2 = 0 (slider from -5 to 5, step 1)
c3 = -5 (slider from -5 to 5, step 1)
d2 = 5 (slider from -5 to 5, step 1)
d3 = 1 (slider from -5 to 5, step 1)
d1 = 7 (slider from -5 to 7, step 1)
text1: "$ \left [ \begin{array}{cc} " + (LaTeX[a1]) + " & " + (LaTeX[a2]) + " & " + (LaTeX[a3]) + " \\ " + (LaTeX[b1]) + " & " + (LaTeX[b2]) + " & " + (LaTeX[b3]) + " \\ " + (LaTeX[c1]) + " & " + (LaTeX[c2]) + " & " + (LaTeX[c3]) + " \\ \end{array} \right ]\left [ \begin{array}{cc} " + (LaTeX[d1]) + " \\ " + (LaTeX[d2]) + " \\ " + (LaTeX[d3]) + " \end{array}  \right ] =\left [\begin{array}{cc} " + (LaTeX[a1 * d1 + a2 * d2 + a3 * d3]) + " \\ " + (LaTeX[b1 * d1 + b2 * d2 + b3 * d3]) + " \\ " + (LaTeX[c1 * d1 + c2 * d2 + c3 * d3]) + " \end{array}   \right ]   $"
inputBox1 = Textfield(a1)
inputBox2 = Textfield(a2)
inputBox3 = Textfield(a3)
inputBox4 = Textfield(b1)
inputBox5 = Textfield(b2)
inputBox6 = Textfield(b3)
inputBox7 = Textfield(c1)
inputBox8 = Textfield(c2)
inputBox9 = Textfield(c3)
inputBox10 = Textfield(d1)
inputBox11 = Textfield(d2)
inputBox12 = Textfield(d3)