From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Area integral over a triangle in MATLAB -- is numerical integration possible?
Date: Sat, 20 Mar 2010 09:32:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 8
Message-ID: <ho24mk$mb1$>
References: <ho1k5u$hsc$> <ho1ocu$ldr$> <ho1pvj$cbr$> <ho1rq8$8rk$> <ho1u8b$dfi$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1269077524 22881 (20 Mar 2010 09:32:04 GMT)
NNTP-Posting-Date: Sat, 20 Mar 2010 09:32:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1654381
Xref: comp.soft-sys.matlab:618468

"Roger Stafford" <> wrote in message <ho1u8b$dfi$>...
>   No Vivek, you should integrate over the full square u = 0 to u = 1 and v = 0 to v = 1.  dblquad will not let you do otherwise.  It is the full u,v square that the x,y triangle is mapped into by the given transformation.  It does not matter that it has a singularity at the (x1,y1) vertex.
> Roger Stafford

Hi Roger, I think I see your point. But what if I use quad2d?

So, if I understand you correctly, the triangle is mapped to the square {(u,v): 0<= u <= 1, 0 <= v <= 1} in (u,v) space.