MATLAB求解阴影面积

Figure 1

Matlab solution:

STEP 1. Find the possible intersection points on two circles.

![][01]
[01]: http://latex.codecogs.com/svg.latex?\left{\begin{array}{ll}x2+(y-a)2&=a2\(x-\frac{a}{2})2+(y-\frac{a}{2})2&=(\frac{a}{2})2\end{array}\right.

code:

>> syms x x0 y0 a positive;
>> [x0, y0]=solve('x^2+(y-a)^2=a^2', '(x-a/2)^2+(y-a/2)^2=(a/2)^2');

output:
![][02]
[02]: http://latex.codecogs.com/svg.latex?\left{\begin{array}{ll}x_0&=\frac{5\pm\sqrt{7}}{8}a\y_0&=\frac{3\pm\sqrt{7}}{8}a\end{array}\right.

and the smaller one of x0 is the first cross point.

STEP 2. find the area s0 by integrating function f on (0, x0), where f is the part using the analytical function of the inscribed circle with radius a/2 minus the second circle with radius a.

![][03]
[03]: http://latex.codecogs.com/svg.latex?f=\sqrt{a2-x2}-\sqrt{ax-x^2}-\frac{a}{2}

then, integrate f on (0, x0):
![][04]
[04]: http://latex.codecogs.com/svg.latex?s_0=\int_{0}{x_0}fdx=\int_{0}{\frac{5-\sqrt{7}}{8}a}(\sqrt{a2-x2}-\sqrt{ax-x^2}-\frac{a}{2})dx

code:

>> f=a/2-(a*x-x^2)^(1/2)-(a-(a^2-x^2)^(1/2));
>> s0=simplify(int(f, x, 0, x0(1,1)));

output:

![][05]
[05]: http://latex.codecogs.com/svg.latex?s_0=\frac{\sqrt{7}+2-\pi+2arcsin(\frac{\sqrt{7}-1}{4})-8arcsin(\frac{\sqrt{7}-5}{8})}{16}a^2

STEP 3. find the area s

>> c= (a^2-pi*a^2/4)/4;
>> s=simplify(c+2*s0);

![][06]
[06]: http://latex.codecogs.com/svg.latex?s=c+2s_0=\frac{2\sqrt{7}-3\pi+4arcsin(\frac{\sqrt{7}-1}{4})-16arcsin(\frac{\sqrt{7}-5}{8})}{16}a2\approx0.1464a2

(done!)

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • “啪”门又一次在身后被重重地关上了,“我再也不来了!”莓子夺门而出,恨恨地喊着!“@$$$€£¥$$"母亲的咒...
    晚起画蛾眉阅读 3,741评论 0 4
  • 《伯夷叔齐列传》 名列七十列传之首。 《太史公自序》:“扶义俶傥,不令己失时,立功名于天下,作七十列传。” 天下重...
    楚兮夜兮阅读 5,763评论 1 1
  • 不会写读书笔记?奥野宣之告诉我们,读书笔记可以从一句话开始。 试想一下,我们刚刚读完一本书,姑且就以《如何有效阅读...
    疲马小驻的小书房阅读 4,388评论 0 0
  • 这一天,黑木崖上正在召开一场严肃、庄重,有可能影响整个武林命运的大典。 黑木崖是在武林中占有半壁江山的日月神教的总...
    张舟子阅读 9,443评论 0 0