日本a√视频在线,久久青青亚洲国产,亚洲一区欧美二区,免费g片在线观看网站

        <style id="k3y6c"><u id="k3y6c"></u></style>
        <s id="k3y6c"></s>
        <mark id="k3y6c"></mark>
          
          

          <mark id="k3y6c"></mark>

          "); //-->

          博客專欄

          EEPW首頁 > 博客 > 標準正態(tài)分布函數(shù)的近似計算

          標準正態(tài)分布函數(shù)的近似計算

          發(fā)布人:luker 時間:2020-09-30 來源:工程師 發(fā)布文章

          #define pi (3.1415926535898)
          #define a0  (0.33267)
          #define a1  (0.4361836)
          #define a2 (-0.1201676)
          #define a3 (0.9372986)
          double test(double x)
          {
          double t = (1.0/(1.0+a0*fabs((x))));
          return exp(-x*x/2.0) * t * (a1 + a2*t + a3*t*t) / sqrt(2.0*pi);
          }
          double testfun(double x)
          {
          if(x == 0)
          {
          return 0.5;
          }
          else if(x > 0)
          {
          return 1.0 - test(x)/sqrt(2*pi);
          }
          else
          {
          return test(x)/sqrt(2*pi);
          }
          }

          *博客內(nèi)容為網(wǎng)友個人發(fā)布,僅代表博主個人觀點,如有侵權請聯(lián)系工作人員刪除。



          關鍵詞:

          相關推薦

          技術專區(qū)

          關閉