Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #6932
| From | "Dr. Wolfgang Hintze" <weh@snafu.de> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Area of two intersecting circles |
| Date | 2011-12-05 10:22 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jbi615$4u2$1@smc.vnet.net> (permalink) |
| References | <jbf968$l4j$1@smc.vnet.net> |
"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
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
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
csiph-web