Python Math.tan() Metoda
Przykład
Znajdź tangens różnych liczb (kątów):
# Import math Library
import math
# Return the tangent of
different numbers
print (math.tan(90))
print (math.tan(-90))
print
(math.tan(45))
print
(math.tan(60))
Definicja i użycie
Metoda math.tan()
zwraca tangens liczby.
Składnia
math.tan(x)
Wartości parametrów
Parameter | Description |
---|---|
x | Required. A number to find the tangent of. If the value is not a number, it returns a TypeError |
Szczegóły techniczne
Wartość zwrotu: | Wartość float reprezentująca tangens liczby |
---|---|
Wersja Pythona: | 1,4 |