Re: Integrating a function over a polygon
- To: mathgroup at smc.vnet.net
- Subject: [mg42523] Re: Integrating a function over a polygon
- From: "Steve Luttrell" <luttrell at _removemefirst_westmal.demon.co.uk>
- Date: Sat, 12 Jul 2003 05:19:28 -0400 (EDT)
- References: <belng1$gsk$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Check out the Calculus`Integration` add-on package. You can do things like this: NIntegrate[Boole[x > 0 && y > 0 && x + y < 1]*Exp[-x^2 - y^2], {x, -Infinity, Infinity}, {y, -Infinity, Infinity}] to obtain 0.366047 -- Steve Luttrell West Malvern, UK "Jagadeesh balam" <balam at engineering.ucsb.edu> wrote in message news:belng1$gsk$1 at smc.vnet.net... > Hi, > > I want a method to integrate a function, say a Gaussian pdf like > exp(-x^2 - y^2) over a random convex polygon whose vertices are known. > Has anyone done this before? > > > > Thanks, > > Jagadeesh > > > > ************************************** > > Jagadeesh Balam > > ECE Department > > University of California > > Santa Barbara > > ************************************** > > > > >