| 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
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.