note 40793 deleted from function.cos by didou
| From: | didou@php.net | Date: | Mon, 15 Mar 2004 07:20:02 +0000 |
| Subject: | note 40793 deleted from function.cos by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-66847@lists.php.net to get a copy of this message | ||
Note Submitter: mbintang_at_matbintang_dot_hn_dot_org
----
Here's a simple function to get the cos of an angle given in degrees
# cos from deg
function dcos ($arg)
{
return (cos(deg2rad($arg)));
}
The same will work for sin and tan too.