跳轉到內容

C++ 程式設計/程式碼/標準 C 庫/函式/sqrt

來自華夏公益教科書,自由的教科書
語法
#include <cmath>
double sqrt( double num );

sqrt() 函式返回num的平方根。如果num為負數,則會發生域錯誤。

相關主題
exp - log - pow
華夏公益教科書