跳轉到內容

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

來自華夏公益教科書,開放的書籍,開放的世界
語法
#include <cmath>
double acos( double arg );

acos() 函式返回 arg 的反餘弦,其範圍在 [0, pi] 之間。arg 應該在 -1 到 1 之間。如果 arg 超出此範圍,acos() 返回 NAN 並引發浮點異常。

相關主題
asin - atan - atan2 - cos - cosh - sin - sinh - tan - tanh
華夏公益教科書