cos

(PHP 4, PHP 5, PHP 7, PHP 8)

cosKosinus

Beschreibung

cos(float $num): float

cos() berechnet den Kosinus des Winkels num. Der Parameter num ist im Bogenmaß.

Parameter-Liste

num

Ein Winkel in Bogenmaß.

Rückgabewerte

Der Kosinus des Winkels num.

Beispiele

Beispiel #1 cos()-Beispiel

<?php

echo cos(M_PI); // -1

?>

Siehe auch

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top