note 40794 deleted from function.sin by didou
| From: | didou@php.net | Date: | Mon, 15 Mar 2004 07:19:52 +0000 |
| Subject: | note 40794 deleted from function.sin by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-66846@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 sin of an angle given in degrees
# sin from deg
function dsin ($arg)
{
return (sin(deg2rad($arg)));
}
The same will work for cos and tan too.