View Single Post
  #9 (permalink)  
Old 04-16-2008, 07:47 AM
sureshbabu sureshbabu is offline
D-Web Sr.Programmer
 
Join Date: Jul 2007
Location: India
Posts: 101
sureshbabu is on a distinguished road
Send a message via AIM to sureshbabu Send a message via MSN to sureshbabu Send a message via Yahoo to sureshbabu Send a message via Skype™ to sureshbabu
Default Re: Mathematical functions in PHP

cos()
The acos() function returns the arccosine of a number as a numeric value value between 0 and PI radians.

Syntax
acos(x)

Example
In this example we will get the arccosine of different numbers:

<?php
echo(acos(0.64) . "<br />");
echo(acos(0) . "<br />");
echo(acos(-1) . "<br />");
echo(acos(1) . "<br />");
echo(acos(2))
?>
__________________
Thanks
Regards
Sureshbabu Harikrishnan
+91 9884320017
Reply With Quote