Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #6958
| From | Alexei Boulbitch <Alexei.Boulbitch@iee.lu> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Area of two intersecting circles |
| Date | 2011-12-06 08:13 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jbkirc$i0f$1@smc.vnet.net> (permalink) |
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?
There is such a function. First let us look at your domain. Evaluate this:
Manipulate[
RegionPlot[
x^2 + y^2 <= 1 && (x - x0)^2 + y^2 <= r, {x, 0, 3}, {y, -1, 1},
PerformanceGoal -> "Quality"],
{x0, 0, 3}, {r, 1, 3}]
Let us define the integral:
int[x0_, r_] :=
Integrate[
Boole[x^2 + y^2 <= 1 && (x - x0)^2 + y^2 <= r], {x, 0,
x0 + r}, {y, -r, r}];
Now let us try:
int[1.9,3]
1.06324
int[2,1]
0
Have fun.
Alexei BOULBITCH, Dr., habil.
IEE S.A.
ZAE Weiergewan,
11, rue Edmond Reuter,
L-5326 Contern, LUXEMBOURG
Office phone : +352-2454-2566
Office fax: +352-2454-3566
mobile phone: +49 151 52 40 66 44
e-mail: alexei.boulbitch@iee.lu<mailto:alexei.boulbitch@iee.lu>
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Area of two intersecting circles Alexei Boulbitch <Alexei.Boulbitch@iee.lu> - 2011-12-06 08:13 +0000
csiph-web