Math İşlevleri
PHP Manual

cos

(PHP 4, PHP 5, PHP 7)

cosCosine

Açıklama

float cos ( float $arg )

cos() returns the cosine of the arg parameter. The arg parameter is in radians.

Değiştirgeler

arg

An angle in radians

Dönen Değerler

The cosine of arg

Örnekler

Örnek 1 cos() example

<?php

echo cos(M_PI); // -1

?>

Ayrıca Bakınız


Math İşlevleri
PHP Manual