Re: Bug in Mathematica ?
- To: mathgroup at smc.vnet.net
- Subject: [mg60794] Re: [mg60779] Bug in Mathematica ?
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Thu, 29 Sep 2005 05:41:01 -0400 (EDT)
- Reply-to: hanlonr at cox.net
- Sender: owner-wri-mathgroup at wolfram.com
Works fine on my system
$Version
5.2 for Mac OS X (June 20, 2005)
Clear[x,y];
Integrate[Max[x,y],{x,0,1},{y,0,1}]
2/3
NIntegrate[Max[x,y],{x,0,1},{y,0,1}]//Rationalize
2/3
Integrate[x,{x,0,1},{y,0,x}]+Integrate[y,{x,0,1},{y,x,1}]
2/3
Bob Hanlon
>
> From: Bidule <toto at truc.com>
To: mathgroup at smc.vnet.net
> Date: 2005/09/28 Wed AM 01:41:27 EDT
> Subject: [mg60794] [mg60779] Bug in Mathematica ?
>
> 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.
>
>