g(x) = x
u0 = 0.2 (slider from -0.2 to 2, step 0.1)
n = 3 (slider from 0 to 10, step 1)
f(x) = (3 x + 2) / (x + 4)
L = IterationList(f, u0, n)
L1 = Sequence((Element[L, i], 0), i, 1, n + 1)
L2 = Sequence((Element[L, i], Element[L, i + 1]), i, 1, n)
L3 = Sequence((Element[L, i], Element[L, i]), i, 1, n + 1)
L4 = Sequence(Segment[Element[L1, i], Element[L2, i]], i, 1, n)
L5 = Sequence(Segment[Element[L2, i], Element[L3, i + 1]], i, 1, n)
L6 = Sequence(Segment[Element[L3, i + 1], Element[L1, i + 1]], i, 1, n)
L7 = Sequence(Segment[Element[L3, i], Element[L2, i]], i, 2, n)
U0: (u0, 0)