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


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

Re: How to integrate a function over a polygon

Started byBob Hanlon <hanlonr357@gmail.com>
First post2011-12-02 12:34 +0000
Last post2011-12-02 12:34 +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: How to integrate a function over a polygon Bob Hanlon <hanlonr357@gmail.com> - 2011-12-02 12:34 +0000

#6904 — Re: How to integrate a function over a polygon

FromBob Hanlon <hanlonr357@gmail.com>
Date2011-12-02 12:34 +0000
SubjectRe: How to integrate a function over a polygon
Message-ID<jbagl8$25i$1@smc.vnet.net>
You are plotting two functions. The triangle is the plot of the
constant zero restricted to the triangular region defined by the
RegionFunction.


Bob Hanlon

On Thu, Dec 1, 2011 at 5:50 AM, DrMajorBob <btreat1@austin.rr.com> wrote:
> When I plot that:
>
> Plot3D[{x^2 + y^2, 0}, {x, -3, 3}, {y, -3, 3},
>  RegionFunction -> Function[{x, y, z}, 0 < x < 1 && 0 < y <= x]]
>
> I see the 3D surface and, in addition, I see a triangle on the z == 0
> plane marking the region.
>
> I didn't expect the triangle. What am I missing in the documentation?
>
> Bobby
>
> On Wed, 30 Nov 2011 02:20:39 -0600, Andrzej Kozlowski <akoz@mimuw.edu.pl>
> wrote:
>
>>
>> On 29 Nov 2011, at 13:03, Mikael wrote:
>>
>>> In a related question I wonder how one can plot g[x,y] over only the
>> 2-dimensional unit simplex.
>>
>>
>> Do you mean something like this:
>>
>> Plot3D[{x^2 + y^2, 0}, {x, -3, 3}, {y, -3, 3},
>>  RegionFunction -> Function[{x, y, z}, 0 < x < 1 && 0 < y <= x]]
>>
>> ?=
>>
>
>
> --
> DrMajorBob@yahoo.com
>

[toc] | [standalone]


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


csiph-web