cmath是標準庫嗎

來源:魅力女性吧 2.21W
cmath是標準庫嗎

cmath即是c++語言中的標準庫頭文件。其中的 “c” 表示其中的函數是來自 C標準庫,“math”表示為數學常用庫函數。

cmath 頭文件中包含了對以下常用數學函數的説明:

std::pow()//求冪函數

std::exp()//指數函數

std::sqrt() //平方根

以及:log,log10sincostan等函數。

熱門標籤