With parameter a\in [0,1]. But the expression above does not work.
I have also tried by creating an implicit region of the surface where I’m integrating (mainly the expression inside the Boole operation), but it fails to discretize the region.
Do you know what I might be doing wrong? Do you know any work-around? Any advice is welcome.
Hi Key, thanks for your interest. Yes, it exists. It is actually a density function for random variable a.
The == is in the Boole command, representing the region of integration, a surface defined by \sqrt{\frac{1}{3} ((\frac{x-y}{x+y})^2+(\frac{y-z}{y+z})^2+(\frac{x-z}{x+z})^2)}=a.
Numerical integration on an infinite domain is possible with MonteCarlo techniques.
I tried to do a ContourPlot3D of the Boole expression with a = 0.5 and got error messages about 1/0. I think that’s similar to the problem you are getting from NIntegrate and DiscretizeRegion. What is the surface you are trying to integrate over? Can you express it in a different way so you don’t get 0 in the denominator for certain subregions?
@Frank. Yes, I don’t know why it gives that error. The division by 0 occurs only at the origin (I consider only positive values of x, y and z), but then it is 0/0 and the limit is 1 for the whole region. The origin is part of the surface only when a==1.
If you use RegionPlot3D and change the == to \leq, it works. The region looks like this (for a=0.2 for instance):
When you try to do the integral with the ImplicitRegion approach, does the error message show up right away? I’m trying that approach and not getting an error but the calculation has been evaluating for several minutes now with no result yet. I’m running version 10.3.
Perhaps you could transform the surface integral to a volume integral using something like Gauss’ law and then use NIntegrate, which works for an inequality constraint inside Boole.
Mmmhh… The problem is that my surface is not closed, which, according to my understanding, prevents it to apply Gauss’ law, is that right?
But maybe Stokes could be applied… The problem is how to interpret my integrand as (\nabla\times\underline{F})\cdot\underline{\rm{d}S}
Because already the normal to that surface is not something simple. Furthermore, I have no idea how to define the boundary curve, since this “cone” grows to \infty.