Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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/>";
?>

Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #inverse #arc #cosine
ADD COMMENT
Topic
Name
6+3 =