Python math.asin() Metodo
Esempio
Restituisce l'arcoseno di numeri diversi:
# Import math Library
import math
# Return the arc sine
of numbers
print(math.asin(0.55))
print(math.asin(-0.55))
print(math.asin(0))
print(math.asin(1))
print(math.asin(-1))
Definizione e utilizzo
Il math.asin()
metodo restituisce l'arcoseno di un numero.
Nota: il parametro passato math.asin()
deve essere compreso tra -1 e 1.
Suggerimento: math.asin(1)
restituirà il valore di PI/2 e math.asin(-1)
restituirà il valore di -PI/2.
Sintassi
math.asin(x)
Valori dei parametri
Parameter | Description |
---|---|
x | Required. A number in the range -1 to 1. If x is not a number, it returns a TypeError |
Dettagli tecnici
Valore di ritorno: | Un float valore, che rappresenta l'arcoseno di un numero |
---|---|
Versione Python: | 1.4 |