Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2000

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

Search the Archive

Re: Another strange bug in Mathematica 4.0's Integrate

  • To: mathgroup at
  • Subject: [mg25339] Re: Another strange bug in Mathematica 4.0's Integrate
  • From: Richard Fateman <fateman at>
  • Date: Sat, 23 Sep 2000 03:36:04 -0400 (EDT)
  • Organization: University of California, Berkeley
  • References: <8q21lp$>
  • Sender: owner-wri-mathgroup at

One could argue that your assignment of wrong and correct is

Here is the argument:

Either integral would be +-Pi r^2/2.  It depends on the sign
of the Sqrt inside the integral.
The first answer, Out[1] encodes the + and - solution.
The second answer gives only one solution, and so is

I wouldn't necessarily endorse this argument, but it is
independent of your "path" observation below.

Hendrik van Hees wrote:
> Here you see another strange bug in Integrate.
> In[1]:= Integrate[Sqrt[(r-x)(r+x)],{x,-r,r},Assumptions->{r>0}]
>                    2
>         Pi r Sqrt[r ]
> Out[1]= -------------                (WRONG)
>               4
> while
> In[2]:= Integrate[Sqrt[r^2-x^2],{x,-r,r},Assumptions->{r>0}]
>             2
>         Pi r
> Out[2]= -----     (correct)
>           2
> and please don't tell me that there is an ambiguity concerning the path
> of integration in the complex plane. It is very clear that the integral
> is meant to be taken along the real axis from -r to r, because if
> Integrate would be a complex path integral the user should be able to
> specify this path of integration!
> --
> Hendrik van Hees                Phone:  ++49 6159 71-2751
> c/o GSI-Darmstadt SB3 3.183     Fax:    ++49 6159 71-2990
> Planckstr. 1                    mailto:h.vanhees at
> D-64291 Darmstadt     

  • Prev by Date: RE: matrix indices
  • Next by Date: Re: 2D array to tab delimited file
  • Previous by thread: Another strange bug in Mathematica 4.0's Integrate
  • Next by thread: Re: Another strange bug in Mathematica 4.0's Integrate