This shows how to enclose an area bounded by one or more curves (or segments) and the axes.

It is based on this example on the JSXGraph wiki.

spinner