close

erfc() erf() 這些 function 並沒有定義在 VS 的 cmath 中

 

使用方法:

Step 1. 下載 boost library http://www.boost.org , 解壓縮後把裡面的 boost 資料夾放在下面路徑

             C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\

Step 2. 加入以下程式碼

          #include <boost\math\special_functions\erf.hpp>

          using boost::math::erfc;



DONE!

arrow
arrow
    全站熱搜

    bamil 發表在 痞客邦 留言(0) 人氣()