First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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