Bolzano's function is the limit of functions defined in the following way, described in terms of their graphs. Each iteration consists of connected line segments. The first graph is the line from (0, 0) to (0, 1). Suppose that and are the endpoints of a segment in some iteration. In the next iteration the segment is replaced by a polygonal line joining the following points: