(PHP 4, PHP 5, PHP 7, PHP 8)
cos — 餘弦
$num
cos() 傳回 num 參數的餘弦值。num 參數的單位是弧度。
num
以弧度表示的角度
num 的餘弦值
範例 #1 cos() 範例
<?phpecho cos(M_PI); // -1?>