Metoda Python math.atan().
Příklad
Vraťte arkus tangens různých čísel:
#Import math Library
import math
#fReturn the arc tangent of
different numbers
print (math.atan(0.39))
print (math.atan(67))
print (math.atan(-21))
Definice a použití
Metoda math.atan()
vrací arkus tangens čísla ( x ) jako číselnou hodnotu mezi -PI/2 a PI/2 radiány.
Arkus tangens je také definován jako funkce inverzní tangens x , kde x je hodnota arkus tangens, která se má vypočítat.
Syntax
math.atan(x)
Hodnoty parametrů
Parameter | Description |
---|---|
x | Required. A positive or negative number. If x is not a number, it returns error a TypeError |
Technické údaje
Návratová hodnota: | Hodnota float od -PI/2 do PI/2, která představuje arkus tangens čísla |
---|---|
Verze Pythonu: | 1.6.1 |