JavaScript Math.tan()
Esempio
let x = Math.tan(1);
Definizione e utilizzo
Il metodo Math.tan() restituisce la tangente di un numero.
Supporto browser
Math.tan()
è una funzione ECMAScript1 (ES1).
ES1 (JavaScript 1997) è completamente supportato in tutti i browser:
Chrome | IE | Edge | Firefox | Safari | Opera |
Yes | Yes | Yes | Yes | Yes | Yes |
Sintassi
Math.tan(x)
Parametri
Parameter | Description |
---|---|
x | Required. A number, in radians, to find the tangent of. |
Valore di ritorno
Un numero che rappresenta la tangente di un numero. |