PHP/Math/cos

Материал из Web эксперт
Версия от 10:06, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

float cos ( float num ) calculates the cosine value of the number provided as its only parameter. The parameter should be passed as radiansyou should use deg2rad( ) to convert degrees to radians.

   <source lang="html4strict">

<?

   $cos1 = cos(10);
   $cos2 = cos(deg2rad(80));

?>

 </source>