Ask Your Question

Revision history [back]

A complement to @tmonteil's answer.

Another straightforward way to define the constant function equal to one and to integrate it is:

sage: f(x) = 1
sage: f.integrate(x,0,1)
1