Scripting: Writing polynomials with text
Description
With this method we can write a polynomial as a text to avoid extra symbols such as "1x+-3x+1".
Scripting
ua = Slider(-1, 1, 0.1, 1, 150, false,true, false,false)
ub = Slider(-1, 1, 0.1, 1, 150, false,true, false,false)
uc = Slider(-1, 1, 0.1, 1, 150, false,true, false,false)
I1 = InputBox(ua)
I2 = InputBox(ub)
I3 = InputBox(uc)
f1(x) = ua x^2+ ub x + uc
f2(x) = ua x^2 + uc
f3(x) = ub x + uc
f4(x) = uc
t1 = If(ua !=0 && ub!= 0 , f1, If( ua!=0 && ub==0, f2, If( ua==0&& ub!=0, f3, If( ua==0 && ub==0, f4) ) ))