Python math.asin()メソッド
例
異なる数値のアークサインを返します。
# 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))
定義と使用法
このmath.asin()
メソッドは、数値のアークサインを返します。
注:渡されるパラメーターは、math.asin()
-1から1の間にある必要があります。
ヒント: math.asin(1)
PI / 2math.asin(-1)
の値を返し、-PI / 2の値を返します。
構文
math.asin(x)
パラメータ値
Parameter | Description |
---|---|
x | Required. A number in the range -1 to 1. If x is not a number, it returns a TypeError |
技術的な詳細
戻り値: | 数値のアークサインを表すfloat 値 |
---|---|
Pythonバージョン: | 1.4 |