tobot 发表于 2021-8-10 22:04

【米尔MYS-8MMX】米尔MYS-8MMQ6-8E2D-180-C应用一——计算圆周率π

<div class='showpostmsg'> 本帖最后由 tobot 于 2021-8-11 10:33 编辑

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">我们知道,圆周率</font>&pi;是一个无限不循环小数(也称为无理数),有时候可以使用计算&pi;值的时间来度量<font face="Calibri">cpu</font><font face="宋体">的好坏,看到网友</font><font face="Calibri">@MianJi</font><font face="宋体">喜欢用本次测评板和树莓派</font><font face="Calibri">3B</font><font face="宋体">做比较,我也来凑个热闹吧,手边有现成的树莓派</font><font face="Calibri">3B</font><font face="宋体">、</font><font face="Calibri">4B</font><font face="宋体">,不过都是</font><font face="Calibri">1G</font><font face="宋体">版的,性能上可能不低于</font><font face="Calibri">i.MX8M Mini</font><font face="宋体">,但内存的差异可能让它们在测评结果上会吃一点亏。</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">在</font></span></span><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">米尔</font></span></span><span style="font-size:10.5000pt"><span style="font-family:宋体">MYS-8MMQ6-8E2D-180-C<font face="宋体">的原生态系统中,只有</font><font face="Calibri">python2</font><font face="宋体">和</font><font face="Calibri">python3</font><font face="宋体">,连最常用的</font><font face="Calibri">gcc</font><font face="宋体">都没找到,</font><font face="Calibri">java</font><font face="宋体">、</font><font face="Calibri">ruby</font><font face="宋体">、</font><font face="Calibri">go</font><font face="宋体">、</font><font face="Calibri">php</font><font face="宋体">什么都没有。。。,不过</font><font face="Calibri">shell</font><font face="宋体">里面居然有</font><font face="Calibri">bc</font><font face="宋体">,也可以试试,那就主要用</font><font face="Calibri">python</font><font face="宋体">比较吧。</font></span></span></span></span></p>

<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">下面介绍几种计算方法:</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体">1<font face="宋体">、反三角函数的幂级数展开</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">我们知道三角函数中对于</font>&pi;是一个非常特殊的值,比如<font face="Calibri">sin(</font><font face="宋体">&pi;</font><font face="Calibri">/2)=1</font><font face="宋体">,</font><font face="Calibri">tan(</font><font face="宋体">&pi;</font><font face="Calibri">/4)=1</font><font face="宋体">等,因此完全可以用反正弦或者反正切的幂级数展开计算</font><font face="Calibri">pi</font><font face="宋体">值。</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">例如</font></span></span></span></span><br />
&nbsp; &nbsp;&nbsp;</p>

<p style="text-indent:21.0000pt; text-align:justify"></p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">反余切公式中,令</font>x=1<font face="宋体">,则</font><font face="Calibri">arctan(x)=</font><font face="宋体">&pi;</font><font face="Calibri">/4</font><font face="宋体">,展开并整理</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"></p>

<table class="Table" style="border-collapse:collapse; margin-left:6px; border:none; font-family:&quot;Times New Roman&quot;; font-size:13px">
        <tbody>
                <tr>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:1px solid #000000; border-right:1px solid #000000; border-left:1px solid #000000" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="vertical-align:middle"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">编译工具</span></span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:1px solid #000000; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="vertical-align:middle"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">命令</span></span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:1px solid #000000; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="vertical-align:middle"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">循环次数</span></span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:1px solid #000000; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="vertical-align:middle"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">树莓派</span></span></span></span><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">3</span></span></span></span><span class="15" style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">B</span></span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:1px solid #000000; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="vertical-align:middle"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">树莓派</span></span></span></span><span class="15" style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">4</span></span></span></span><span class="15" style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">B(1G)</span></span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:1px solid #000000; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="vertical-align:middle"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">MYS-8MMX</span></span></span></span></span></span></span></span></p>
                        </td>
                </tr>
                <tr>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:1px solid #000000" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">shell</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">time bash trigonometric.sh</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">10000</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                </tr>
                <tr>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:1px solid #000000" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">bc</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">time bc -q trigonometric.bc</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">1</span></span></span></span><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">0000000</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                </tr>
                <tr>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:1px solid #000000" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">python2</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">time python</span></span></span></span><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">2</span></span></span></span><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">&nbsp;trigonometric.py</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">5</span></span></span></span><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">0000000</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                </tr>
                <tr>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:1px solid #000000" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">python3</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">time python</span></span></span></span><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">3</span></span></span></span><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">&nbsp;trigonometric.py</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">5</span></span></span></span><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">0000000</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p style="text-align:justify"> &nbsp;</p>
                        </td>
                </tr>
        </tbody>
</table>

<p style="text-align:justify">&nbsp;</p>

<ol start="2">
        <li style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">网格法</font></span></span></span></span></li>
</ol>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">圆内的点到圆心的距离都小于圆的半径,那么把</font>1/4<font face="宋体">个圆分成</font><font face="Calibri">n*n</font><font face="宋体">个格子,数一下有多少格子落在圆内,再除以格子总数,乘以</font><font face="Calibri">4</font><font face="宋体">,就能计算出&pi;值了。</font></span></span></span></span></p>

<table class="Table" style="border-collapse:collapse; margin-left:6px; border:none; font-family:&quot;Times New Roman&quot;; font-size:13px">
        <tbody>
                <tr>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:1px solid #000000; border-right:1px solid #000000; border-left:1px solid #000000" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="vertical-align:middle"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">编译工具</span></span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:1px solid #000000; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="vertical-align:middle"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">命令</span></span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:1px solid #000000; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="vertical-align:middle"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">循环次数</span></span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:1px solid #000000; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="vertical-align:middle"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">树莓派</span></span></span></span><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">3</span></span></span></span><span class="15" style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">B</span></span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:1px solid #000000; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="vertical-align:middle"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">树莓派</span></span></span></span><span class="15" style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">4</span></span></span></span><span class="15" style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">B(1G)</span></span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:1px solid #000000; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="vertical-align:middle"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">MYS-8MMX</span></span></span></span></span></span></span></span></p>
                        </td>
                </tr>
                <tr>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:1px solid #000000" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">shell</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">time bash grid.sh</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">10000</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                </tr>
                <tr>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:1px solid #000000" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">bc</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">time bc -q grid.bc</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">10000000</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                </tr>
                <tr>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:1px solid #000000" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">python2</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">time python</span></span></span></span><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">2</span></span></span></span>&nbsp;<span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">grid</span></span></span></span><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">.py</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">5</span></span></span></span><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">0000000</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                </tr>
                <tr>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:1px solid #000000" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">python3</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">time python</span></span></span></span><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">3</span></span></span></span>&nbsp;<span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">grid</span></span></span></span><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">.py</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">5</span></span></span></span><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">0000000</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p style="text-align:justify"> &nbsp;</p>
                        </td>
                </tr>
        </tbody>
</table>

<p style="text-align:justify">&nbsp;</p>

<p style="text-align:justify">&nbsp;</p>

<ol start="3">
        <li style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">倍乘法(</font>multipli<font face="宋体">)</font></span></span></span></span></li>
</ol>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">圆周率可以用</font></span></span></span></span><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">计算。</font></span></span></span></span></p>

<table class="Table" style="border-collapse:collapse; margin-left:6px; border:none; font-family:&quot;Times New Roman&quot;; font-size:13px">
        <tbody>
                <tr>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:1px solid #000000; border-right:1px solid #000000; border-left:1px solid #000000" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="vertical-align:middle"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">编译工具</span></span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:1px solid #000000; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="vertical-align:middle"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">命令</span></span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:1px solid #000000; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="vertical-align:middle"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">循环次数</span></span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:1px solid #000000; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="vertical-align:middle"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">树莓派3B</span></span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:1px solid #000000; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="vertical-align:middle"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">树莓派</span></span></span></span><span class="15" style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">4</span></span></span></span><span class="15" style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">B(1G)</span></span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:1px solid #000000; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="vertical-align:middle"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">MYS-8MMX</span></span></span></span></span></span></span></span></p>
                        </td>
                </tr>
                <tr>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:1px solid #000000" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">shell</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">time bash multipli.sh</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">10000</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                </tr>
                <tr>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:1px solid #000000" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">bc</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">time bc -q multipli.bc</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">5000000</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                </tr>
                <tr>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:1px solid #000000" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">python2</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">time python</span></span></span></span><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">2</span></span></span></span><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">&nbsp;multipli.py</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">50000000</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                </tr>
                <tr>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:1px solid #000000" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">python3</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">time python</span></span></span></span><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">3</span></span></span></span><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">&nbsp;multipli.py</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">50000000</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                </tr>
        </tbody>
</table>

<p style="text-align:justify">&nbsp;</p>

<ol start="4">
        <li style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">蒙特卡罗方法(随机数法)</font></span></span></span></span></li>
</ol>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">用通过概率实验所求的结果来估计参数,这样的方法称为</font></span></span><a href="https://baike.baidu.com/item/%E8%92%99%E7%89%B9%E5%8D%A1%E7%BD%97"><span style="font-size:10.5000pt"><span style="font-family:Calibri"><font face="宋体">蒙特卡罗</font></span></span></a><span style="font-size:10.5000pt"><span style="font-family:Calibri"><font face="宋体">方法(</font>Monte Carlo method<font face="宋体">)。</font></span></span></span></span></p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">可以随机在正方形内取一点,在其内切圆内的概率为</font>&pi;<font face="Calibri">/4</font><font face="宋体">。我们可以据此计算出圆周率。</font></span></span></span></span></p>

<table class="Table" style="border-collapse:collapse; margin-left:6px; border:none; font-family:&quot;Times New Roman&quot;; font-size:13px">
        <tbody>
                <tr>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:1px solid #000000; border-right:1px solid #000000; border-left:1px solid #000000" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="vertical-align:middle"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">编译工具</span></span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:1px solid #000000; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="vertical-align:middle"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">命令</span></span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:1px solid #000000; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="vertical-align:middle"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">循环次数</span></span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:1px solid #000000; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="vertical-align:middle"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">树莓派3B</span></span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:1px solid #000000; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="vertical-align:middle"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">树莓派</span></span></span></span><span class="15" style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">4</span></span></span></span><span class="15" style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">B(1G)</span></span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:1px solid #000000; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="vertical-align:middle"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">MYS-8MMX</span></span></span></span></span></span></span></span></p>
                        </td>
                </tr>
                <tr>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:1px solid #000000" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">shell</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">time bash rand.sh</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">1000000</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                </tr>
                <tr>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:1px solid #000000" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">python2</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">time python</span></span></span></span><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">2</span></span></span></span><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">&nbsp;rand.py</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">50000000</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                </tr>
                <tr>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:1px solid #000000" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">python3</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">time python</span></span></span></span><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">3</span></span></span></span><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">&nbsp;rand.py</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:11.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-style:normal">50000000</span></span></span></span></span></span></span></p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p align="justify" style="text-align:justify"> &nbsp;</p>
                        </td>
                        <td style="border-bottom:1px solid #000000; padding:1px 1px 0px 1px; border-top:none; border-right:1px solid #000000; border-left:none" valign="center">
                        <p style="text-align:justify"> &nbsp;</p>
                        </td>
                </tr>
        </tbody>
</table>

<p style="text-align:justify">&nbsp;</p>

<p style="text-indent:21.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:10.5000pt"><span style="font-family:宋体"><font face="宋体">从上述的结果来看,</font>NXP<font face="宋体">的</font><font face="Calibri">i.MX8M Mini</font><font face="宋体">的性能略低于博通</font><font face="Calibri">BCM2711</font><font face="宋体">,高于博通</font><font face="Calibri">BCM2837</font><font face="宋体">。</font></span></span></span></span></p>

<p style="text-align:justify">&nbsp; &nbsp; &nbsp; &nbsp; 为什么会内存溢出?</p>
</div><script>                                        var loginstr = '<div class="locked">查看本帖全部内容,请<a href="javascript:;"   style="color:#e60000" class="loginf">登录</a>或者<a href="https://bbs.eeworld.com.cn/member.php?mod=register_eeworld.php&action=wechat" style="color:#e60000" target="_blank">注册</a></div>';
                                       
                                        if(parseInt(discuz_uid)==0){
                                                                                                (function($){
                                                        var postHeight = getTextHeight(400);
                                                        $(".showpostmsg").html($(".showpostmsg").html());
                                                        $(".showpostmsg").after(loginstr);
                                                        $(".showpostmsg").css({height:postHeight,overflow:"hidden"});
                                                })(jQuery);
                                        }                </script><script type="text/javascript">(function(d,c){var a=d.createElement("script"),m=d.getElementsByTagName("script"),eewurl="//counter.eeworld.com.cn/pv/count/";a.src=eewurl+c;m.parentNode.insertBefore(a,m)})(document,523)</script>

tobot 发表于 2021-8-10 22:06

<p>源代码,共享之!</p>

<p></p>

freebsder 发表于 2021-8-11 16:25

<p>这个有点意思,看来数值计算imx8还是偏弱了点。毕竟晚出来几年。</p>

hqli126 发表于 2021-8-15 08:13

i.MX8M Mini的性能略低于博通BCM2711,高于博通BCM2837
页: [1]
查看完整版本: 【米尔MYS-8MMX】米尔MYS-8MMQ6-8E2D-180-C应用一——计算圆周率π