Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

In sage plot: fill the area under a curve between two x-values.

How do I fill the area under a curve between two $x$-values using sage plot?

For example, maybe I am using the following code:

plot(x(x-1)(x-2)+1,0,2,fill=True)

but I only want the area under the curve from x = 0.5 to x = 1.5 to be shaded in.