arc cosine php

45

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

Comments

Submit
0 Comments