Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news-transit.tcx.org.uk!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!news.cgarbs.de!news.szaf.org!news.gnuher.de!rz.uni-karlsruhe.de!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail From: Peter Pein Newsgroups: comp.soft-sys.math.maple Subject: Re: Integration over a complicated region in Maple? Date: Sun, 22 May 2011 23:53:00 +0200 Organization: 1&1 Internet AG Lines: 31 Message-ID: References: <7d724e7e-0494-4dec-a75d-66a736c02c3f@k15g2000pri.googlegroups.com> NNTP-Posting-Host: p4fc20e7e.dip0.t-ipconnect.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: online.de 1306101182 3892 79.194.14.126 (22 May 2011 21:53:02 GMT) X-Complaints-To: abuse@einsundeins.com NNTP-Posting-Date: Sun, 22 May 2011 21:53:02 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.17) Gecko/20110414 Mnenhy/0.8.3 Thunderbird/3.1.10 In-Reply-To: <7d724e7e-0494-4dec-a75d-66a736c02c3f@k15g2000pri.googlegroups.com> Xref: x330-a1.tempe.blueboxinc.net comp.soft-sys.math.maple:155 Am 22.05.2011 21:01, schrieb Ray Vickson: > In a recent positing in "sci.math" the following Mathematica command > was given as the solution to a problem: > Timing[12 Integrate[If[x1 > x2 && y1 > y2 && y2 > y3 && > x2 + y2 < x3 + y3 && x3 + y3 < x1 + y1 && x3 > x1, 8, 0], > {x1, 0, 1}, {y1, 0, 1 - x1}, {x2, 0, 1}, {y2, 0, 1 - x2}, > {x3, 0, 1}, {y3, 0, 1 - x3}]] > > {77.766, 1/5} > > So, the integration is that of the characteristic function of the set > {(x1,y1,x2,y2,x3,y3): x1 > x2, y1 > y2, y2 > y3, x2 + y2 < x3 + y3, x3 > + y3 < x1 + y1, x3 > x1}, and Mathematical got the answer as 1/5. > > Can this also be done in Maple? So far, I have not managed to do it. > > (For the origin of the problem, see the "sci.math" thread with the > delightful title "Non-transitive vampire breakfast cereal > probabilities".) > > RGV obviously Maple fails: eval(convert("12 Integrate[If[x1 > x2 && y1 > y2 && y2 > y3 && > x2 + y2 < x3 + y3 && x3 + y3 < x1 + y1 && x3 > x1, 8, 0], > {x1, 0, 1}, {y1, 0, 1 - x1}, {x2, 0, 1}, {y2, 0, 1 - x2}, > {x3, 0, 1}, {y3, 0, 1 - x3}]",FromMma)); gives an unevaluated nested integral, while Mma gives on my machine: In[1]:= Timing[12 Integrate[If[x1>x2&&y1>y2&&y2>y3&&x2+y2x1,8,0],{x1,0,1},{y1,0,1-x1},{x2,0,1},{y2,0,1-x2},{x3,0,1},{y3,0,1-x3}]] Out[1]= {79.217,1/5}