MathGroup Archive 2005

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

Search the Archive

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
answer. 

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

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

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

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

In[7]:=
NIntegrate[Max[x,y],{x,0,1},{y,0,1}]
Out[7]=
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[1]:=
$Version
Out[1]=
5.0 for Microsoft Windows (June 11, 2003)

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

In[3]:=
NIntegrate[Max[x,y],{x,0,1},{y,0,1}]
Out[3]=
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 ?