First time here? Check out the FAQ!
asked 2 years ago
The following code returns 1/2, however it can be easily verified that ∫10max What's wrong?
1/2
from sage.symbolic.integration.integral import definite_integral var('x') definite_integral(max(x,1-x),x,0,1)