acos

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

acosArkuskosinus

Beschreibung

acos(float $num): float

Berechnet den Arkuskosinus des Parameters num im Bogenmaß. acos() ist die Umkehrfunktion von cos(), d. h. für jeden Wert von num, der innerhalb des Wertebereichs von acos() liegt, gilt $num == cos(acos($num)).

Parameter-Liste

num

Der zu verarbeitende Wert.

Rückgabewerte

Der Arkuskosinus von num im Bogenmaß.

Siehe auch

add a note add a note

User Contributed Notes 1 note

up
-3
rahmatjon at gmail dot com
3 years ago
Hello!
There is no any example for acos() function. Please put this one below the acos() function's description.
Thank you!

Example:
<?php
    $arg
=0.5;
   
$val=acos($arg);
    echo
"acos(" . $arg . ") = " . $val . " radians.<br/>";
    echo
"Pi value = " . pi() . "<br/>";   
    echo
"acos(" . $arg . ") = " . $val/pi()*180 . " degrees<br/>";
?>
To Top