Hi,

an easy solution would be to define the function to be integrated in such a
way that it returns zero outside the integration area. AFAIK, GSL does not
provide the functionality you described directly.

Regards
Frank

2008/12/4 ghadir mohammadkhani <[EMAIL PROTECTED]>

> Dear all
>
> hello
>
> I want to integrate with Monte-Carlo method, but the limits of integration
> aren't independent, for example in integral \int f(x,y,z)dx dy dz, x goes
> from -2 to 2 , y varies from -(2-x*x)^(0.5) until (2-x*x)^(0.5), the lower
> and upper limits in z are, respectively -(2-x*x-y*y)^(0.5) and
> (2-x*x-y*y)^(0.5). I don't know that how must change my program, i.e in the
> main of the example program with the Monte-Carlo routine, double xl[3] = { ,
> , } and  double xu[3] = { , , } how must be modified?
>
> Thanks for your help,
>
> regards,
> ghadir
>
_______________________________________________
Help-gsl mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gsl

Reply via email to