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


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

Area of two intersecting circles

Started byScott Colwell <srcolwell@gmail.com>
First post2011-12-04 07:58 +0000
Last post2011-12-06 08:15 +0000
Articles 8 — 5 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Area of two intersecting circles Scott Colwell <srcolwell@gmail.com> - 2011-12-04 07:58 +0000
    Re: Area of two intersecting circles David Skulsky <edskulsky@gmail.com> - 2011-12-05 10:18 +0000
      Re: Area of two intersecting circles Scott Colwell <srcolwell@gmail.com> - 2011-12-06 08:17 +0000
    Re: Area of two intersecting circles David Skulsky <edskulsky@gmail.com> - 2011-12-05 10:19 +0000
    Re: Area of two intersecting circles "Dr. Wolfgang Hintze" <weh@snafu.de> - 2011-12-05 10:22 +0000
    Re: Area of two intersecting circles Simon <simonjtyler@gmail.com> - 2011-12-05 10:24 +0000
    Re: Area of two intersecting circles David Skulsky <edskulsky@gmail.com> - 2011-12-05 23:46 +0000
    Re: Area of two intersecting circles Ray Koopman <koopman@sfu.ca> - 2011-12-06 08:15 +0000

#6923 — Area of two intersecting circles

FromScott Colwell <srcolwell@gmail.com>
Date2011-12-04 07:58 +0000
SubjectArea of two intersecting circles
Message-ID<jbf968$l4j$1@smc.vnet.net>
I have 2 disks named A and B.  They both have the same radius. Is there a function in mathematica that will find the area of the intersection between the two circles?

[toc] | [next] | [standalone]


#6929

FromDavid Skulsky <edskulsky@gmail.com>
Date2011-12-05 10:18 +0000
Message-ID<jbi5qd$4sn$1@smc.vnet.net>
In reply to#6923
I believe I made a mistake in my previous response.  The correct expression is

\!\(
\*SubsuperscriptBox[\(\[Integral]\), \(0\), \(2\ \[Pi]\)]\(
\*SubsuperscriptBox[\(\[Integral]\), \(0\), \(R\)]\(r\ Boole[
\*SuperscriptBox[\(d\), \(2\)] + 
\*SuperscriptBox[\(r\), \(2\)] <= 
\*SuperscriptBox[\(R\), \(2\)] + 
       2\ d\ r\ Cos[\[Theta]]]\) \[DifferentialD]r \[DifferentialD]\
\[Theta]\)\)

where R is the radius of the circles and d is the distance between them.

Sorry about that.

David

[toc] | [prev] | [next] | [standalone]


#6964

FromScott Colwell <srcolwell@gmail.com>
Date2011-12-06 08:17 +0000
Message-ID<jbkj3g$i3i$1@smc.vnet.net>
In reply to#6929
Thank you everyone for your responses.

[toc] | [prev] | [next] | [standalone]


#6930

FromDavid Skulsky <edskulsky@gmail.com>
Date2011-12-05 10:19 +0000
Message-ID<jbi5rd$4st$1@smc.vnet.net>
In reply to#6923
And for a closed-form solution (apparently it does exist!), see here:

http://mathworld.wolfram.com/Circle-CircleIntersection.html

David

[toc] | [prev] | [next] | [standalone]


#6932

From"Dr. Wolfgang Hintze" <weh@snafu.de>
Date2011-12-05 10:22 +0000
Message-ID<jbi615$4u2$1@smc.vnet.net>
In reply to#6923
"Scott Colwell" <srcolwell@gmail.com> schrieb im Newsbeitrag 
news:jbf968$l4j$1@smc.vnet.net...
>I have 2 disks named A and B.  They both have the same radius. Is 
>there a function in mathematica that will find the area of the 
>intersection between the two circles?
>

You can use Boole[] to find the formula in the following way

h[a_] := Integrate[Boole[(x - a)^2 + y^2 <= r^2 && (x + a)^2 + y^2 <= 
r^2], {x, -r, r}, {y, -r, r},
Assumptions -> {a >= 0, r > 0}]

h[a]
Out[12]=
Piecewise[{{Pi*r^2, a == 0 && r > 0}, {Pi*r^2 - 2*a*Sqrt[-a^2 + r^2] - 
2*r^2*ArcTan[a/Sqrt[-a^2 + r^2]],
a > 0 && a - r < 0}}]

In[13]:=
h[0]
Out[13]=
Pi*r^2
In[14]:=
h[r]
Out[14]=
0

Regards,
Wolfgang 

[toc] | [prev] | [next] | [standalone]


#6936

FromSimon <simonjtyler@gmail.com>
Date2011-12-05 10:24 +0000
Message-ID<jbi656$4vc$1@smc.vnet.net>
In reply to#6923
How about something like

Integrate[Boole[x^2 + y^2 <= 1 && (x - 1/2)^2 + y^2 <= 1], 
   {x, -Infinity, Infinity}, {y, -Infinity, Infinity}]

[toc] | [prev] | [next] | [standalone]


#6949

FromDavid Skulsky <edskulsky@gmail.com>
Date2011-12-05 23:46 +0000
Message-ID<jbjl51$e6t$1@smc.vnet.net>
In reply to#6923
I don't know if a closed-form solution to this problem exists, but you can solve it numerically with the following expression:

\!\(
\*SubsuperscriptBox[\(\[Integral]\), \(0\), \(2\ \[Pi]\)]\(
\*SubsuperscriptBox[\(\[Integral]\), \(0\), \(R\)]r\ \((Boole[
\*SuperscriptBox[\((r\ Cos[\[Theta]] - d)\), \(2\)] + 
\*SuperscriptBox[\((r\ Sin[\[Theta]])\), \(2\)] <= 
\*SuperscriptBox[\(r\), \(2\)]])\) \[DifferentialD]r \[DifferentialD]\
\[Theta]\)\)

where R is the radius of the circles and d is the distance between the centers of the circles.

A slightly simplified version of the same expression is

\!\(
\*SubsuperscriptBox[\(\[Integral]\), \(0\), \(2\ \[Pi]\)]\(
\*SubsuperscriptBox[\(\[Integral]\), \(0\), \(R\)]\(r\ Boole[
\*SuperscriptBox[\(d\), \(2\)] <= 
      2\ d\ r\ Cos[\[Theta]]]\) \[DifferentialD]r \[DifferentialD]\
\[Theta]\)\)

David

[toc] | [prev] | [next] | [standalone]


#6960

FromRay Koopman <koopman@sfu.ca>
Date2011-12-06 08:15 +0000
Message-ID<jbkiuj$i2g$1@smc.vnet.net>
In reply to#6923
On Dec 3, 11:58 pm, Scott Colwell <srcolw...@gmail.com> wrote:
> I have 2 disks named A and B.  They both have the same radius.
> Is there a function in mathematica that will find the area of
> the intersection between the two circles?

Let the disks have radius 1, and let their centers be at 0,0 and 0,c.
Then the area of their intersection is

In[1]:= Assuming[0 < c < 2, 4 Integrate[
          Boole[x^2 + y^2 < 1]*Boole[(x-c)^2 + y^2 < 1],
          {x, c-1, c/2}, {y, 0, 1}]]

Out[1]= (1/2)*((-c)*Sqrt[4 - c^2] + 4*ArcCos[c/2])

That simplifies (manually) to

2*( ArcCos[c/2] - (c/2)*Sqrt[1 - (c/2)^2] ),

If we take  c/2 = Cos[t/2]

then the area further simplifies to  t - Sin[t].

For the general case, use

c/2 = (center-to-center distance)/(diameter)

and multiply the area by r^2.

[toc] | [prev] | [standalone]


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


csiph-web