Re: Bug in Mathematica ?

*To*: mathgroup at smc.vnet.net*Subject*: [mg60797] Re: [mg60779] Bug in Mathematica ?*From*: <bsyehuda at gmail.com>*Date*: Thu, 29 Sep 2005 05:41:04 -0400 (EDT)*References*: <200509280541.BAA08394@smc.vnet.net>*Reply-to*: bsyehuda at gmail.com*Sender*: owner-wri-mathgroup at wolfram.com

Why different? In[1]:= $Version Out[1]= 5.2 for Microsoft Windows (June 20, 2005) In[2]:= Integrate[Max[x,y],{x,0,1},{y,0,1}] Out[2]= \!\(2\/3\) In[3]:= NIntegrate[Max[x,y],{x,0,1},{y,0,1}] Out[3]= 0.666667 In[4]:= Rationalize[%] Out[4]= \!\(2\/3\) yehuda On 9/28/05, Bidule <toto at truc.com> wrote: > > Hi, > > I've computed the following two expressions: > > Integrate[Max[x, y], {x, 0, 1}, {y, 0, 1}] > NIntegrate[Max[x, y], {x, 0, 1}, {y, 0, 1}] > > which result in very different numbers. When I calculate the integral by > hand I get (2/3). > > Any thoughts ? I guess by now it's probably a known bug. (or maybe even > a 'feature'). > > B. > >

**References**:**Bug in Mathematica ?***From:*Bidule <toto@truc.com>