First time here? Check out the FAQ!
answered 9 years ago
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