馬可夫鍊
Author: 楊尊媛

a_{11}=

a_{12}=

b_{12}=

馬可夫鍊

a = 0.6
b = 0.5
c = 0.8
e: 1 - b
f: 1 - c
inputBox1 = Textfield(a)
inputBox2 = Textfield(b)
d: 1 - a
inputBox3 = Textfield(c)
text3: "P^{(1)}=AP^{(0)}= \left [\begin{array}{cc} " + (LaTeX[FractionText[a * c + b * f]]) + " \\" + (LaTeX[FractionText[d * c + e * f]]) + "\\ \end{array}   \right ]  "
text4: "$ P^{(2)}=AP^{(1)}=\left [ \begin{array}{cc} " + (LaTeX[FractionText[a * (a * c + b * f) + b * (d * c + e * f)]]) + " \\ " + (LaTeX[FractionText[d * (a * c + b * f) + e * (d * c + e * f)]]) + " \\ \end{array}  \right ]  $"
text5: "$P^{(3)}=AP^{(2)}= \left [ \begin{array}{cc} " + (LaTeX[FractionText[a * (a * (a * c + b * f) + b * (d * c + e * f)) + b * (d * (a * c + b * f) + e * (d * c + e * f))]]) + " \\ " + (LaTeX[FractionText[d * (a * (a * c + b * f) + b * (d * c + e * f)) + e * (d * (a * c + b * f) + e * (d * c + e * f))]]) + "  \\ \end{array}  \right ]  $"
text1: "$A= \left [ \begin{array}{cc} " + (LaTeX[FractionText[a]]) + " & " + (LaTeX[FractionText[b]]) + " \\ " + (LaTeX[FractionText[d]]) + " & " + (LaTeX[FractionText[e]]) + " \\ \end{array}  \right ]  $"
text2: "$P^{(0)}=\left [ \begin{array}{cc}" + (LaTeX[FractionText[c]]) + " \\ " + (LaTeX[FractionText[f]]) + " \\  \end{array}  \right ]   $"
n = 0 (slider from 0 to 5, step 1)