Python Math.atan() Metoda
Przykład
Zwróć arcus tangens różnych liczb:
#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))
Definicja i użycie
Metoda math.atan()
zwraca arcus tangens liczby ( x ) jako wartość liczbową z zakresu od -PI/2 do PI/2 radianów.
Arc tangens jest również zdefiniowana jako odwrotna funkcja tangensa x , gdzie x jest wartością arcus tangens do obliczenia.
Składnia
math.atan(x)
Wartości parametrów
Parameter | Description |
---|---|
x | Required. A positive or negative number. If x is not a number, it returns error a TypeError |
Szczegóły techniczne
Wartość zwrotu: | Wartość float od -PI/2 do PI/2 reprezentująca arcus tangens liczby |
---|---|
Wersja Pythona: | 1.6.1 |