矩陣的乘法
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}=

a1 = 5 (slider from -5 to 5, step 1)
a2 = 2 (slider from -5 to 5, step 1)
a3 = -2 (slider from -5 to 5, step 1)
b1 = -3 (slider from -5 to 5, step 1)
b2 = 2 (slider from -5 to 5, step 1)
b3 = 3 (slider from -5 to 5, step 1)
c1 = -3 (slider from -5 to 5, step 1)
c2 = -1 (slider from -5 to 5, step 1)
c3 = -3 (slider from -5 to 5, step 1)
d1 = 1 (slider from -5 to 5, step 1)
d2 = 2 (slider from -5 to 5, step 1)
d3 = 3 (slider from -5 to 5, step 1)
e1 = 1 (slider from -5 to 5, step 1)
e2 = 2 (slider from -5 to 5, step 1)
e3 = 1 (slider from -5 to 5, step 1)
f1 = -1 (slider from -5 to 5, step 1)
f2 = 0 (slider from -5 to 5, step 1)
f3 = 1 (slider from -5 to 5, 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}{} " + (LaTeX[d1]) + " & " + (LaTeX[d2]) + " & " + (LaTeX[d3]) + " \\ " + (LaTeX[e1]) + " & " + (LaTeX[e2]) + " & " + (LaTeX[e3]) + " \\ " + (LaTeX[f1]) + " & " + (LaTeX[f2]) + " & " + (LaTeX[f3]) + " \\ \end{array} \right ] =\left [ \begin{array}{cc} " + (LaTeX[a1 * b1 + a2 * e1 + a3 * f1]) + " & " + (LaTeX[a1 * d2 + a2 * e2 + a3 * f2]) + " &" + (LaTeX[a1 * b3 + a2 * e3 + a3 * f3]) + " \\ " + (LaTeX[b1 * d1 + b2 * e1 + b3 * f1]) + " &" + (LaTeX[b1 * d2 + b2 * e2 + b3 * f2]) + " & " + (LaTeX[b1 * d3 + b2 * e3 + b3 * f3]) + " \\ " + (LaTeX[c1 * d1 + c2 * e1 + c3 * f1]) + " & " + (LaTeX[c1 * d2 + c2 * e2 + c3 * f2]) + " & " + (LaTeX[c1 * d3 + c2 * e3 + c3 * f3]) + " \\ \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)
inputBox13 = Textfield(e1)
inputBox14 = Textfield(e2)
inputBox15 = Textfield(e3)
inputBox16 = Textfield(f1)
inputBox17 = Textfield(f2)
inputBox18 = Textfield(f3)