美文网首页数学之美
MATLAB求解阴影面积

MATLAB求解阴影面积

作者: Feel君 | 来源:发表于2016-04-12 19:56 被阅读356次
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!)

相关文章

  • MATLAB求解阴影面积

    Matlab solution: STEP 1. Find the possible intersection p...

  • NaN

    matlab 出现NaN是因为求解器不对

  • 阴影面积

    那是一个冬天,路上都没什么人。 某个拐角过去,汽车司机往前开。这雪是今年第一场雪。 这雪比以前,来得更好一些。迎面...

  • 阴影面积

    别跟我提投资,只要一提投资,就全身脑瓜子疼。 落下病根儿了。 有阴影啊。虽然阴影面积不大,但锥得太特么深了。属于刻...

  • 阴影面积

    前段时间单位的货车报废,采购新车,购车期间,租赁其他的货车送水三次,但是租车成本太高,后来只好拖延送水的时间,有些...

  • 阴影面积

    思路引导:第二问,求弧AE的长,半径很好求,关键是求∠ACE的度数。在直角ACD中,利用边的关系,得出∠ACD=6...

  • 梯形求面积例题

    梯形面积求解例题说明

  • 梯形求面积例题

    梯形面积求解例题说明

  • 关于excel规划求解中敏感性报告阴影价格应用

    关于excel规划求解中敏感性报告阴影价格应用 目录:[toc] 阴影价格 获取敏感性报告 通过规划求解得到结果时...

  • 心里阴影面积

    吵一场架,也许一晚上都好了。 失恋一场,也许一段时间都好了。 但是有些事,一直挥之不去,我宁愿相信是时间不够长,也...

网友评论

    本文标题:MATLAB求解阴影面积

    本文链接:https://www.haomeiwen.com/subject/dxrwlttx.html