First time here? Check out the FAQ!
answered 2016-01-12 20:45:29 +0100
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