Php acos
From w3cyberlearnings
Contents |
PHP function acos
This function returns the arc cosine of a number, and it returns NULL when the input number is not in the range -1 to 1.
Syntax acos
- X is a number in the range -1 to 1.
acos(X);
Example 1
<?php echo acos(0); echo "<br/>"; echo acos(-0.3); ?>
Output
1.5707963267949 1.8754889808103