A simple illustration of the trapezoid rule for definite integration, see section [XXX] in the manuscript. Here, the code  (Jupyter Notebook hosted locally) is executed through the icon on the left side of the image. "Executable Figures" are indicated by the </>Code icon its top-left side. We can do R too!