Hello, Suppose I want to get the area of the intersection of two regions, given by x^2+y^2 < 4 and x+y<1 .
In Mathematica I can use Integrate[ Boole[And[x^2 + y^2 < 4, x + y < 1]], {x, -Infinity, Infinity}, {y, -Infinity, Infinity}] "Boole" is a function which turns True into 1 and False into 0. How can I do the same in SAGE? I tried: def boole(x): if(x == True): return 1 return 0 integrate(integrate( boole(x^2+y^2<4 and x+y<1),(x,-oo,oo)),(y,-oo,oo)) but it doesn't work (gives zero). Thanks! -- Renan Birck Pinheiro - Grupo de Microeletrônica <http://www.ufsm.br/gmicro>- Engenharia Elétrica <http://www.ufsm.br/cee>/UFSM <http://www.ufsm.br> http://renanbirck.blogspot.com / skype: renan.ee.ufsm -- 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