       Re: Re: Bug in Mathematica ?

• To: mathgroup at smc.vnet.net
• Subject: [mg60878] Re: [mg60852] Re: Bug in Mathematica ?
• From: "Jose Luis Gomez" <jose.luis.gomez at itesm.mx>
• Date: Sat, 1 Oct 2005 02:55:53 -0400 (EDT)
• Sender: owner-wri-mathgroup at wolfram.com

```Version 5.0 gives different answers with NIntegrate and Integrate. However,
if you load the package Calculus`Integration, then both give the same

In:=
\$Version
Out=
5.0 for Microsoft Windows (November 18, 2003)

In:=
Integrate[Max[x,y],{x,0,1},{y,0,1}]
Out=
\!\(1\/3\)

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

In:=
<<Calculus`Integration`
In:=
Integrate[Max[x,y],{x,0,1},{y,0,1}]
Out=
\!\(2\/3\)

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

Reagards!
José Luis

-----Mensaje original-----
De: Bidule [mailto:toto at truc.com]
Enviado el: Viernes, 30 de Septiembre de 2005 02:57 a.m.
Para: mathgroup at smc.vnet.net
Asunto: [mg60852] Re: Bug in Mathematica ?

Curtis Osterhoudt a écrit :
> Hi, Bidule,
>
>    Mathematica 5.1 for Linux gives me 2/3 and 0.66666667, respectively.
> Which version are you using?

Thank you all for answering. It's a good thing you all agree.
Sorry I wasn't explicit enough.
I use version 5.0 for Windows.
The first calculation gave 1/3, while the second one gave 0.66667.
I'm glad to hear everything's right in version 5.1

B.

PS: for informative purposes, here is the full output I got:
In:=
\$Version
Out=
5.0 for Microsoft Windows (June 11, 2003)

In:=
Integrate[Max[x,y],{x,0,1},{y,0,1}]
Out=
\!\(1\/3\)

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

```

• Prev by Date: Re: Solve / NSolve take too much time or fail
• Next by Date: Re: A programming puzzle.
• Previous by thread: Re: Re: Bug in Mathematica ?
• Next by thread: Re: Bug in Mathematica ?