矩陣的乘法
Author: 楊尊媛

a_{11}=

a_{12}=

a_{13}=

a_{21}=

a_{22}=

a _{23}=

b_{11}=

b_{12}=

b_{21}=

b_{22}=

a1 = 5 (slider from -5 to 5, step 1)
a2 = 4 (slider from -5 to 5, step 0.1)
a3 = 6 (slider from -5 to 6, step 0.1)
b1 = 9 (slider from -5 to 9, step 0.1)
b2 = 10 (slider from -5 to 10, step 0.1)
b3 = 6 (slider from -5 to 6, step 0.1)
d1 = 4
c1 = 7
c2 = 6
d2 = 6
e1 = 3
e2 = 1
text1: "$ \left [\begin{array}{cc} " + (LaTeX[a1]) + " & " + (LaTeX[a2]) + " & " + (LaTeX[a3]) + " \\ " + (LaTeX[b1]) + " & " + (LaTeX[b2]) + " &" + (LaTeX[b3]) + " \\ \end{array}  \right ]  \left [ \begin{array}{cc}  " + (LaTeX[c1]) + " &   " + (LaTeX[c2]) + " \\  " + (LaTeX[d1]) + " &  " + (LaTeX[d2]) + "  \\ " + (LaTeX[e1]) + "  & " + (LaTeX[e2]) + "   \\ \end{array} \right ] =\left [\begin{array}{cc} " + (LaTeX[a1 * c1 + a2 * d1 + a3 * e1]) + " & " + (LaTeX[a1 * c2 + a2 * d2 + a3 * e2]) + "  \\ " + (LaTeX[b1 * c1 + b2 * d1 + b3 * e1]) + " & " + (LaTeX[b1 * c2 + b2 * d2 + b3 * e2]) + " \\ \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(d1)
inputBox10 = Textfield(e2)