PHP 8.3.4 Released!

acos

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

acosArco coseno

Descrizione

acos(float $arg): float

Restituisce l'arco coseno di arg in radianti. La funzione acos() è complementare alla funzione cos(), ovvero che a==cos(acos(a)) per ciascun valore di a nel range di acos().

Vedere anche: acosh(), asin() e atan().

add a note

User Contributed Notes 1 note

up
-19
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