When I use the following code it returns 0.

var('x y')
def f1(x,y):
    if(x+y < 5):
        return x+y
    else:
        return 0

integral(integral(f1(x,y), x, 0,1), y, 0, 1)



whereas


integral(integral(x+y, x, 0,1), y, 0, 1)

returns 1.

Can any one point out the reason for this discrepancy and how to solve it?

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to