y = x

y = x

a = 0.6 (slider from -5 to 5, step 0.1)
b = 0.1 (slider from -5 to 5, step 0.1)
d(x) = a * x + b
u_0 = 2 (slider from -10 to 10, step 0.1)
A: (u_0, 0.0)
d_2 = OrthogonalLine(A, xAxis)
B = Intersect(d, d_2, 1.0)
e = OrthogonalLine(B, yAxis)
C = Intersect(c, e)
g = OrthogonalLine(C, xAxis)
D = Intersect(d, g, 1.0)
h = OrthogonalLine(D, yAxis)
E = Intersect(c, h)
i = OrthogonalLine(E, xAxis)
F = Intersect(d, i, 1.0)
j = OrthogonalLine(F, yAxis)
G = Intersect(c, j)
k = OrthogonalLine(G, xAxis)
H = Intersect(d, k, 1.0)
l = OrthogonalLine(H, yAxis)
I = Intersect(c, l)
m = OrthogonalLine(I, xAxis)
u_1 = Intersect(g, xAxis)
u_2 = Intersect(i, xAxis)
u_3 = Intersect(k, xAxis)
u_4 = Intersect(m, xAxis)
f = Segment(A, B)
n = Segment(B, C)
p = Segment(C, D)
q = Segment(D, E)
r = Segment(E, F)
s = Segment(F, G)
t = Segment(G, H)
a_1 = Segment(H, I)
b_1 = Segment(I, u_4)
c_1 = Segment(G, u_3)
d_1 = Segment(E, u_2)
e_1 = Segment(C, u_1)