Метод Python math.tan()
Пример
Найдите тангенсы различных чисел (углов):
# 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))
Определение и использование
Метод math.tan()
возвращает тангенс числа.
Синтаксис
math.tan(x)
Значения параметров
Parameter | Description |
---|---|
x | Required. A number to find the tangent of. If the value is not a number, it returns a TypeError |
Технические детали
Возвращаемое значение: | Значение float , представляющее тангенс числа |
---|---|
Версия Python: | 1,4 |