Answers for "php inverse / arc cosine"

PHP
0

php inverse / arc cosine

//thank you rahmatjon
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/>";
?>
Posted by: Guest on August-02-2021

Browse Popular Code Answers by Language