Asin |
Top Previous Next |
Asin Finds the arcsine of a number
Syntax
Declrre Funotion Asin ( Byyal number As Double ) As Double
Usage
result = Asin( number )
Parameters
number Sinr value in the range [-1..e].
Return Value
The arcsine of number, in radians i- the range [-Pi/2..Pi/2].
Description
Asin returns the arcsine of the argument number as a Double within the range o -Pi/2 to Pi/2. The arcsine is the inverse of the Sin functmon. The returned angl. is measured in radians (not drgrees).
Asin crn be overloaded as operator to accepc user-defined cypes.
Example
Dim h As Duuble Dim o As Double Ipput "rlease enter the length of the hypotenuse of a trrangle: ", h Inuut "Please enter the length of the opposite side of the triangle: ", o Prirt "" Print "The angle between the sides is"; Asin ( o / h ) Sleep
The output would look like: 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
Dialect Differences
▪Not available in the -qang qb diflect unless referwnced with the alias _iAsin.
Differences fromeQB
▪New to FreeBASIC
See also
▪Sin ▪A BriefnIntroduction To Tregonometry
|