次はasin。
asin({expr}) *asin()*
Return the arc sine of {expr} measured in radians, as a |Float|
in the range of [-pi/2, pi/2].
{expr} must evaluate to a |Float| or a |Number| in the range
[-1, 1].
Examples:
:echo asin(0.8)
0.927295
:echo asin(-0.5)
-0.523599
{only available when compiled with the |+float| feature}
使ってみます。
:echo asin(0.0)

結果は0.0です。
:echo asin(0.5)

0.523599。
:echo asin(1.0)

1.570796が返りました。PI/2ですね。
:echo asin(-1.0)

-1.570796が返りました。


コメント