a = 1.5 (slider from -5 to 5, step 0.1)
b = -1.2 (slider from -5 to 5, step 0.1)
f(x) = (a * x) + b
A = Root(f)
k_1 = FractionText(x(A))
text1: "Koreň=" + (LaTeX[k_1]) + ""
a_1 = FractionText(a)
b_1 = FractionText(b)
s_2 = If(b < 0, "-", "+")
a_c = Numerator(a)
a_m = Denominator(a)
b_c = Numerator(b)
c_{asb}: abs(b_c)
b_m = Denominator(b)
a_s = If(a < 0, "-", "")
a_{asb}: abs(a_c)
text2: "Funkcia\  f(x)=" + (LaTeX[a_s]) + "\frac{" + (LaTeX[a_{asb}]) + "}{" + (LaTeX[a_m]) + "}x" + (LaTeX[s_2]) + "\frac{" + (LaTeX[c_{asb}]) + "}{" + (LaTeX[b_m]) + "}"