tan
PHP Manual
PHP Manual»Math Funzioni»tan

tan

(PHP 4, PHP 5, PHP 7, PHP 8)

tanTangente

Descrizione

function tan(float $arg): float

La funzione tan() restituisce la tangente del parametro arg. Il parametro arg deve essere espresso in radianti.

Example #1 Esempio per tan()

<?php 
 
echo tan(M_PI_2); // 1 
 
?>

Vedere anche: atan(), sin(), cos() e deg2rad().

To Top