找出数字的反正弦
语法
用法
result = Asin( number )
参数
返回值
number 的反正弦,以弧度表示,范围为[-Pi/2..Pi/2].
说明
Asin将
number 的参数
number 的反正弦值返回到
Pi/ 2范围内的
Pi/ 2。反正弦是
Sin函数的倒数。返回的角度在
弧度(不是
度)中测量。
例子
Dim h As Double
Dim o As Double
Input "请输入三角形斜边的长度:", h
Input "请输入三角形对面的长度:", o
Print ""
Print "两边之间的角度是"; Asin ( o / h )
Sleep
输出将如下所示:
Please enter the length of the hypotenuse of a triangle: 5
Please enter the length of the opposite side of the triangle: 3
The angle between the sides is 0.6435011087932844
方言差异
与QB差别
参考