Get the arc cosine of different numbers in PHP

Description

The following code shows how to get the arc cosine of different numbers.

Example


/* ww w . j  a v  a  2s .  c o  m*/
<?php
    echo(acos(0.64) . "<br>");
    echo(acos(-0.4) . "<br>");
    echo(acos(0) . "<br>");
    echo(acos(-1) . "<br>");
    echo(acos(1) . "<br>");
    echo(acos(2));
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    Development »




Environment
Error
Hash
Include
Locale
Math
Network
Output
Reflection
PHP Regular Expressions