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!)

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • “啪”門又一次在身后被重重地關(guān)上了,“我再也不來(lái)了!”莓子奪門而出,恨恨地喊著!“@$$$€£¥$$"母親的咒...
    晚起畫(huà)蛾眉閱讀 682評(píng)論 0 4
  • 《伯夷叔齊列傳》 名列七十列傳之首。 《太史公自序》:“扶義俶儻,不令己失時(shí),立功名于天下,作七十列傳?!?天下重...
    楚兮夜兮閱讀 1,894評(píng)論 1 1
  • 不會(huì)寫讀書(shū)筆記?奧野宣之告訴我們,讀書(shū)筆記可以從一句話開(kāi)始。 試想一下,我們剛剛讀完一本書(shū),姑且就以《如何有效閱讀...
    疲馬小駐的小書(shū)房閱讀 961評(píng)論 0 0
  • 這一天,黑木崖上正在召開(kāi)一場(chǎng)嚴(yán)肅、莊重,有可能影響整個(gè)武林命運(yùn)的大典。 黑木崖是在武林中占有半壁江山的日月神教的總...
    張舟子閱讀 4,178評(píng)論 0 0

友情鏈接更多精彩內(nèi)容