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


Groups > comp.soft-sys.math.mathematica > #6862

Re: How to integrate a function over a polygon

From Andrzej Kozlowski <akoz@mimuw.edu.pl>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: How to integrate a function over a polygon
Date 2011-12-01 10:55 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jb7mfl$f8k$1@smc.vnet.net> (permalink)
References <201111291203.HAA05398@smc.vnet.net> <201111300820.DAA17132@smc.vnet.net> <op.v5rsylgetgfoz2@bobbys-imac.local>

Show all headers | View raw


Note that you are plotting a pair:

{x^2 + y^2, 0}

The 0 gives the triangle. It was my doing really, no need to blame Mathematica ;-)

Andrzej


On 30 Nov 2011, at 18:45, DrMajorBob 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

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: How to integrate a function over a polygon Andrzej Kozlowski <akoz@mimuw.edu.pl> - 2011-12-01 10:55 +0000

csiph-web