Asin
 
找出数字的反正弦

语法

Declare Function Asin ( ByVal number As Double ) As Double

用法

result = Asin( number )

参数

number
正弦值范围[-1..1].

返回值

number 的反正弦,以弧度表示,范围为[-Pi/2..Pi/2].

说明

Asinnumber 的参数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

方言差异

  • -lang qb 方言中不可用,除非使用别名__Asin引用。

与QB差别

  • 新的FreeBASIC

参考