thanks, all of you <br><br><div class="gmail_quote">On Thu, Feb 4, 2010 at 7:31 PM, Terry Reedy <span dir="ltr"><<a href="mailto:tjreedy@udel.edu">tjreedy@udel.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div class="im">On 2/4/2010 7:05 AM, Shashwat Anand wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I want to calculate areas.<br>
like for two circles (0, 0) and (0, 1) : the output is '1.228370'<br>
<br>
similarly my aim is to take 'n' co-ordinates, all of radius '1' and<br>
calculate the area common to all.<br>
The best I got was monte-carlo methods which is inefficient. Is there<br>
any other approach possible.<br>
</blockquote>
<br></div>
There is a method for calculating the area of a polygon by traversing its boundary. I forget the formula, but you should be able to find it. So *if* you can find the arcs that bound the area, you can approximate each by a series of short lines and apply the polygon method.<br>


<br>
Terry Jan Reedy<br><font color="#888888">
<br>
-- <br></font><div><div></div><div class="h5">
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</div></div></blockquote></div><br>