Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Bug in Mathematica ?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg60785] Re: [mg60779] Bug in Mathematica ?
  • From: Andrzej Kozlowski <andrzej at yhc.att.ne.jp>
  • Date: Thu, 29 Sep 2005 05:40:53 -0400 (EDT)
  • References: <200509280541.BAA08394@smc.vnet.net>
  • Reply-to: Andrzej Kozlowski <andrzej at akikoz.net>
  • Sender: owner-wri-mathgroup at wolfram.com

On 28 Sep 2005, at 14:41, 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.
>
>


The number should be very different. It is a feature.

In[1]:=
Integrate[Max[x, y], {x, 0, 1}, {y, 0, 1}]

Out[1]=
2/3

In[2]:=
NIntegrate[Max[x, y], {x, 0, 1}, {y, 0, 1}]

Out[2]=
0.6666666666666666

In[4]:=
$Version

Out[4]=
5.1 for Mac OS X (October 25, 2004)

Andrzej Kozlowski


  • Prev by Date: Re: Bug in Mathematica ?
  • Next by Date: nonlinear fit question
  • Previous by thread: Re: Bug in Mathematica ?
  • Next by thread: Re: Bug in Mathematica ?