How to use acos in PHP
This article describe about acos() function in PHP.
acos() function
The arccosine of a number as a numeric value between 0 and PI radians return by the acos() function
Syntax
Parameter |
Description |
a |
Required. And must be numeric value between -1 to 1. |
Note: If the range outside between -1 to 1 then browser return -1.#IND.
Example
<html>
<body>
<?php
echo(acos(0.44) . "<br />");
echo(acos(0) . "<br />");
echo(acos(-1) . "<br />");
echo(acos(1) . "<br />");
echo(acos(2))
?>
</body>
</html> |
Output

You may also want to read these related articles Click here
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here