ASin

首页  后退  前进

 


ASin
down2

ASin

计算数的反正弦值.

 

ASin ( expression )

参数

expression

-1 到 1(包括 -1, 1)之间的任意数.

返回值

返回三角函数的反正弦值,结果为弧度单位.

备注

ASin(x) 的数学定义范围为 -1 < x < 1, 因此 ASin 往往返回 -1.#IND 表示 x 为其它数.

 

函数示例

示例 1

#include <MsgBoxConstants.au3>
Example()
Func Example()
    ; Assign a Local variable the arcSine of 0.5.
    Local $fArcSin1 = ASin(0.5)
    ; Display the result.
    MsgBox($MB_SYSTEMMODAL, "", $fArcSin1 & " rad.")
    ; Assign a Local constant variable the approximate PI number.
    Local Const $PI = 3.141592653589793
    ; Assign a Local variable the formula to switch from radian to degree (equals to one radian in degree).
    Local $fRadToDeg = 180 / $PI
    ; Assign a Local variable a number in degree.
    Local $fArcSin2 = $fRadToDeg * ASin(1)
    ; Display the result.
    MsgBox($MB_SYSTEMMODAL, "", $fArcSin2 & " deg.")
EndFunc   ;==>Example

示例 2

; Example of using ASin with degrees
#include <Math.au3>
#include <MsgBoxConstants.au3>
Local $fDegree = _Degree(ASin(0.5))
MsgBox($MB_SYSTEMMODAL, Default, "ASin(0.5) = " & $fDegree & " degrees")

----------------------------------------

 

该函数可以通过命令 exect 调用

参见:

Sin, Cos, Tan, ACos, ATan

例子
copy
ASin(0.707106781186547)

 

exect=$var_pi=2*ASin(1)||$var_nd=$var_pi/180||$var_nr=180/$var_pi||$var_na=ASin(0.707106781186547)/$var_nd||$var_nb=ASin(1)*$var_nr||ASin(0.5)*$var_nr GLOBALEXECT<a> ;; 使用电弧正弦函数进行各种计算

up2

tcimage © Аверин Андрей для Total Commander Image Averin-And@yandex.ru