Re: Bug in Mathematica ?
- To: mathgroup at smc.vnet.net
- Subject: [mg60805] Re: Bug in Mathematica ?
- From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
- Date: Thu, 29 Sep 2005 05:41:15 -0400 (EDT)
- Organization: The Open University, Milton Keynes, U.K.
- References: <dhdbeu$8fk$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Bidule 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.
>
Not sure what bug you are talking about since I got 2/3 and 0.6666...
respectively.
In[1]:=
Integrate[Max[x, y], {x, 0, 1}, {y, 0, 1}]
NIntegrate[Max[x, y], {x, 0, 1}, {y, 0, 1}]
Out[1]=
2/3
Out[2]=
0.6666666666666666
In[3]:=
N[%%]
Out[3]=
0.6666666666666666
In[4]:=
$Version
Out[4]=
"5.2 for Microsoft Windows (June 20, 2005)"
/J.M.