組み立て除法

1

a = Random(-4, 4)
b = Random(-4, 4)
c = Random(-3, 5)
d: (Random[1, 3] * ((Random[0, 1] * 2) - 1))
f0(x) = x^(3) + (a * x^(2)) + (b * x) + c
f: f0
g0(x) = x - d
g: g0
text1: "" + f + "を" + g + "で割る計算を
組み立て除法で行え。"
text3: "" + a + ""
text4: "" + b + ""
text5: "" + c + ""
text6: "" + d + ""
p = 0
q = 0
r = 0
s = 0
t = 0
u = 0
v = 0
入力ボックス1 = Textfield(p)
入力ボックス2 = Textfield(q)
入力ボックス3 = Textfield(r)
入力ボックス4 = Textfield(s)
入力ボックス5 = Textfield(t)
入力ボックス6 = Textfield(u)
入力ボックス7 = Textfield(v)
A = (-3.96, 2.8)
B = (1.96, 2.8)
e = Segment(A, B)
C = Point(e)
D = (0.06, 1.64)
h = Segment(D, C)
st1: p ≟ 1
st2: st1 ∧ q ≟ (p * d)
st3: st2 ∧ r ≟ a + q
st4: st3 ∧ s ≟ (r * d)
st5: st4 ∧ t ≟ b + s
st6: st5 ∧ u ≟ (t * d)
st7: st6 ∧ v ≟ c + u
E = (-1.2, 3.86)
F = (0.04, 5.36)
k = Circle(E, F)