JavaScript Math.tan()
Przykład
let x = Math.tan(1);
Definicja i użycie
Metoda Math.tan() zwraca tangens liczby.
Obsługa przeglądarki
Math.tan()
to funkcja ECMAScript1 (ES1).
ES1 (JavaScript 1997) jest w pełni obsługiwany we wszystkich przeglądarkach:
Chrome | IE | Edge | Firefox | Safari | Opera |
Yes | Yes | Yes | Yes | Yes | Yes |
Składnia
Math.tan(x)
Parametry
Parameter | Description |
---|---|
x | Required. A number, in radians, to find the tangent of. |
Wartość zwrotu
Liczba reprezentująca tangens liczby. |