Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #13655 > unrolled thread

Re: A bug-looking behavior during integration

Started byAlex Krasnov <akrasnov@eecs.berkeley.edu>
First post2013-03-01 02:25 +0000
Last post2013-03-01 02:25 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: A bug-looking behavior during integration Alex Krasnov <akrasnov@eecs.berkeley.edu> - 2013-03-01 02:25 +0000

#13655 — Re: A bug-looking behavior during integration

FromAlex Krasnov <akrasnov@eecs.berkeley.edu>
Date2013-03-01 02:25 +0000
SubjectRe: A bug-looking behavior during integration
Message-ID<kgp3ht$ctc$1@smc.vnet.net>
This does appear to be a bug. Two other examples (Mathematica 8.0.4):

In:	Integrate[UnitStep[(1+Cos[ArcTan[x, y]])-Sqrt[x^2+y^2]], {x, -Infinity, Infinity}, {y, -Infinity, Infinity}]
Out:	0

In:	Integrate[UnitStep[Cos[3*ArcTan[x, y]]-Sqrt[x^2+y^2]], {x, -Infinity, Infinity}, {y, -Infinity, Infinity}]
Out:	0

Alex


On Wed, 27 Feb 2013, Alexei Boulbitch wrote:

> Dear community,
>
> I would like to report a strange behaviour, that looks most of all like a bug.
>
> The integral of the UnitStep of some function
>
> Integrate[
> UnitStep[Sqrt[Sqrt[x^2 + y^2] + x] -
>   0.7 Sqrt[x^2 + y^2]], {x, -Infinity, Infinity}, {y, -Infinity,Infinity}]
>
> 0
>
> returns zero as you see, though the function under the integral is 1 within some domain in the form of a cardioid, and zero outside of it. To make it sure evaluate this:
>
> Plot3D[UnitStep[
>  Sqrt[Sqrt[x^2 + y^2] + x] - 0.7 Sqrt[x^2 + y^2]], {x, -3, 5}, {y, -3, 5}]
>
> The integral must be positive, therefore.
>
> Taking the numerical value of the same integral one finds a finite positive value:
>
> NIntegrate[
> UnitStep[Sqrt[Sqrt[x^2 + y^2] + x] -
>   0.7 Sqrt[x^2 + y^2]], {x, -Infinity, Infinity}, {y, -Infinity, Infinity}]
>
> 19.6268
>
> Is it indeed a bug?
>
> Regards, Alexei
>
>
> Alexei BOULBITCH, Dr., habil.
> IEE S.A.
> ZAE Weiergewan,
> 11, rue Edmond Reuter,
> L-5326 Contern, LUXEMBOURG
>
> Office phone :  +352-2454-2566
> Office fax:       +352-2454-3566
> mobile phone:  +49 151 52 40 66 44
>
> e-mail: alexei.boulbitch@iee.lu
>
>
>
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web