note 85003 modified in function.cos by felipe
| From: | felipe@php.net | Date: | Mon, 11 Aug 2008 14:36:49 +0000 |
| Subject: | note 85003 modified in function.cos by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-143367@lists.php.net to get a copy of this message | ||
Another way to figure out a triangle (more efficient)
<?php
$a = 10; // a
$b = 15; // b
$angle = 45; // angle opposite side c
$c = (sqrt(pow($a, 2) + pow($b, 2) - $a * $b * cos(deg2rad($angle)) * 2));
// side c = 10.613894770933
?>
yes im good arent i?
--was--
Another way to figure out a triangle (more efficient)
$a = 10; // a
$b = 15; // b
$angle = 45; // angle opposite side c
$c = (sqrt(pow($a, 2) + pow($b, 2) - $a * $b * cos(deg2rad($angle)) * 2));
// side c = 10.613894770933
yes im good arent i?
http://php.net/manual/en/function.cos.php