sin

(PHP 3, PHP 4 , PHP 5)

sin -- Seno

Descrizione

float sin ( float arg)

La funzione sin() restituisce il seno di arg. Il parametro arg viene espresso in radianti.

<?php

// La precisione dipende dalle direttive di precisione
echo sin(deg2rad(60));  //  0.866025403 ...
echo sin(60);           // -0.304810621 ...

?>

Vedere anche asin(), cos(), tan() e deg2rad().