Python math.atan() Metodo
Esempio
Restituisce l'arcotangente di numeri diversi:
#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))
Definizione e utilizzo
Il math.atan()
metodo restituisce l'arcotangente di un numero ( x ) come valore numerico compreso tra -PI/2 e PI/2 radianti.
L'arcotangente è anche definito come una funzione inversa tangente di x , dove x è il valore dell'arcotangente da calcolare.
Sintassi
math.atan(x)
Valori dei parametri
Parameter | Description |
---|---|
x | Required. A positive or negative number. If x is not a number, it returns error a TypeError |
Dettagli tecnici
Valore di ritorno: | Un float valore, da -PI/2 a PI/2, che rappresenta l'arcotangente di un numero |
---|---|
Versione Python: | 1.6.1 |