u(x)

u'(x)

show derivative

show function

maxx = 5
dx = 0.5
A_{1} = Point(x_{1})
A_{2} = Point(x_{2})
A_{3} = Point(x_{3})
A_{4} = Point(x_{4})
A_{5} = Point(x_{5})
A_{6} = Point(x_{6})
A_{7} = Point(x_{7})
A_{8} = Point(x_{8})
A_{9} = Point(x_{9})
A_{10} = Point(x_{10})
A_{11} = Point(x_{11})
A_{12} = Point(x_{12})
A_{13} = Point(x_{13})
A_{14} = Point(x_{14})
A_{15} = Point(x_{15})
A_{16} = Point(x_{16})
A_{17} = Point(x_{17})
A_{18} = Point(x_{18})
A_{19} = Point(x_{19})
A_{20} = Point(x_{20})
A_{21} = Point(x_{21})
seg_{1} = Segment(A_{1}, A_{2})
seg_{2} = Segment(A_{2}, A_{3})
seg_{3} = Segment(A_{3}, A_{4})
seg_{4} = Segment(A_{4}, A_{5})
seg_{5} = Segment(A_{5}, A_{6})
seg_{6} = Segment(A_{6}, A_{7})
seg_{7} = Segment(A_{7}, A_{8})
seg_{8} = Segment(A_{8}, A_{9})
seg_{9} = Segment(A_{9}, A_{10})
seg_{10} = Segment(A_{10}, A_{11})
seg_{11} = Segment(A_{11}, A_{12})
seg_{12} = Segment(A_{12}, A_{13})
seg_{13} = Segment(A_{13}, A_{14})
seg_{14} = Segment(A_{14}, A_{15})
seg_{15} = Segment(A_{15}, A_{16})
seg_{16} = Segment(A_{16}, A_{17})
seg_{17} = Segment(A_{17}, A_{18})
seg_{18} = Segment(A_{18}, A_{19})
seg_{19} = Segment(A_{19}, A_{20})
seg_{20} = Segment(A_{20}, A_{21})
sl_{1} = Slope(seg_{1})
sl_{2} = Slope(seg_{2})
sl_{3} = Slope(seg_{3})
sl_{4} = Slope(seg_{4})
sl_{5} = Slope(seg_{5})
sl_{6} = Slope(seg_{6})
sl_{7} = Slope(seg_{7})
sl_{8} = Slope(seg_{8})
sl_{9} = Slope(seg_{9})
sl_{10} = Slope(seg_{10})
sl_{11} = Slope(seg_{11})
sl_{12} = Slope(seg_{12})
sl_{13} = Slope(seg_{13})
sl_{14} = Slope(seg_{14})
sl_{15} = Slope(seg_{15})
sl_{16} = Slope(seg_{16})
sl_{17} = Slope(seg_{17})
sl_{18} = Slope(seg_{18})
sl_{19} = Slope(seg_{19})
sl_{20} = Slope(seg_{20})
deriv_{1} = Segment((x(A_{1}), sl_{1}), (x(A_{2}), sl_{1}))
deriv_{2} = Segment((x(A_{2}), sl_{2}), (x(A_{3}), sl_{2}))
deriv_{3} = Segment((x(A_{3}), sl_{3}), (x(A_{4}), sl_{3}))
deriv_{4} = Segment((x(A_{4}), sl_{4}), (x(A_{5}), sl_{4}))
deriv_{5} = Segment((x(A_{5}), sl_{5}), (x(A_{6}), sl_{5}))
deriv_{6} = Segment((x(A_{6}), sl_{6}), (x(A_{7}), sl_{6}))
deriv_{7} = Segment((x(A_{7}), sl_{7}), (x(A_{8}), sl_{7}))
deriv_{8} = Segment((x(A_{8}), sl_{8}), (x(A_{9}), sl_{8}))
deriv_{9} = Segment((x(A_{9}), sl_{9}), (x(A_{10}), sl_{9}))
deriv_{10} = Segment((x(A_{10}), sl_{10}), (x(A_{11}), sl_{10}))
deriv_{11} = Segment((x(A_{11}), sl_{11}), (x(A_{12}), sl_{11}))
deriv_{12} = Segment((x(A_{12}), sl_{12}), (x(A_{13}), sl_{12}))
deriv_{13} = Segment((x(A_{13}), sl_{13}), (x(A_{14}), sl_{13}))
deriv_{14} = Segment((x(A_{14}), sl_{14}), (x(A_{15}), sl_{14}))
deriv_{15} = Segment((x(A_{15}), sl_{15}), (x(A_{16}), sl_{15}))
deriv_{16} = Segment((x(A_{16}), sl_{16}), (x(A_{17}), sl_{16}))
deriv_{17} = Segment((x(A_{17}), sl_{17}), (x(A_{18}), sl_{17}))
deriv_{18} = Segment((x(A_{18}), sl_{18}), (x(A_{19}), sl_{18}))
deriv_{19} = Segment((x(A_{19}), sl_{19}), (x(A_{20}), sl_{19}))
deriv_{20} = Segment((x(A_{20}), sl_{20}), (x(A_{21}), sl_{20}))
maxy = 8
sltmp = -7
B_{1} = Point(xm_{1})
B_{2} = Point(xm_{2})
B_{3} = Point(xm_{3})
B_{4} = Point(xm_{4})
B_{5} = Point(xm_{5})
B_{6} = Point(xm_{6})
B_{7} = Point(xm_{7})
B_{8} = Point(xm_{8})
B_{9} = Point(xm_{9})
B_{10} = Point(xm_{10})
B_{11} = Point(xm_{11})
B_{12} = Point(xm_{12})
B_{13} = Point(xm_{13})
B_{14} = Point(xm_{14})
B_{15} = Point(xm_{15})
B_{16} = Point(xm_{16})
B_{17} = Point(xm_{17})
B_{18} = Point(xm_{18})
B_{19} = Point(xm_{19})
B_{20} = Point(xm_{20})
a = true
b = true