Processing math: 0%

First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 2 years ago

Max Alekseyev gravatar image

definite_integral of max function

The following code returns 1/2, however it can be easily verified that 10max What's wrong?

from sage.symbolic.integration.integral import definite_integral
var('x')
definite_integral(max(x,1-x),x,0,1)