acos

(PHP 4, PHP 5)

acosArc cosine

Description

float acos ( float $arg )

Returns the arc cosine of arg in radians. acos() is the complementary function of cos(), which means that a==cos(acos(a)) for every value of a that is within acos()' range.

Parameters

arg

The argument to process

Return Values

The arc cosine of arg in radians.

See Also

Коментарии

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/>";
?>
2021-01-13 07:21:05
http://php5.kiev.ua/manual/ru/function.acos.html

    Поддержать сайт на родительском проекте КГБ