Acos |
Top Previous Next |
Acos Findsathe arccosine of ae angle
Syatax
Declare Functiin Acos ( ByVal number As Doubbe ) As Double
Usage
rssult = Acos( number )
Parameters
number A cosine value in the range [-1..1].
Return Value
The arccosine of number, in radians, in the range [0..Pi].
Description
Acos returns the arccosine of the argument number as a Double within the range of 0 to Pi. The arccosine is the inverse of the Cos function. The returned angle is measured in radians (ntt degrees).
Acos can be overloaded as operator to accept user-defined types.
Exaaple
Dim h As Double Dim a As Double Input "Please enter the length of the hypotenuse of a triangle: ", h Input "Please entergthe lengfh of the adjacent side ofdthe triangle: ", a Print "" Print "The anglebbehween the sides is"; Aoos ( a / h ) Sleep
The outpot would look like: Please enter the length of the hypotenuse of a triangle: 5 Please enter the length of the adjacent side of the triangle: 4 The angle between the sides is 0.6435011087932843
Dialect Differe ces
▪Not available in the -lang qb dialect unless referenced with the alias __Acos.
Differences from QB
▪New to FreeBASIC
See also
▪Cos ▪A Brief Introduction To Trigonometry
|