Metoda Python math.tan().
Příklad
Najděte tangens různých čísel (úhlů):
# 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))
Definice a použití
Metoda math.tan()
vrací tangens čísla.
Syntax
math.tan(x)
Hodnoty parametrů
Parameter | Description |
---|---|
x | Required. A number to find the tangent of. If the value is not a number, it returns a TypeError |
Technické údaje
Návratová hodnota: | Hodnota float představující tangens čísla |
---|---|
Verze Pythonu: | 1.4 |