Math.Asin Function in VB.NET

What is the use of math.asin() mathematical function in VB.NET?

Explanation

Math.Asin Function

Math.Asin Mathematical Function in VB.net 2008 is used to find the Arc Sine angle for the given sine value. The value should be in the range of '-1' and '1'.
Syntax:

Math.Asin(Value)

In the above syntax Value specifies the Sine value whose angle is returned.
Example:

Module Module1
Sub Main()
Console.WriteLine("The Arc Sine value of 6 is
::" & Math.Asin(6))
Console.WriteLine("The Arc Sine value of 0 is
::" & Math.Asin(0))
Console.WriteLine("The Arc Sine value of 1 is
::" & Math.Asin(1))
Console.ReadLine()
End Sub
End Module
Result:

The Arc Sine value of 6 is::NaN
The Arc Sine value of 0 is:: 0
The Arc Sine value of 1 is::1.5707963267949

In the above example, the Math.Asin mathematical function is used to find the arc sine value of angles 6,0,1. Since '6' is more than the specified range of '-1' and '1', function returns 'NaN'.

Visual Basic Tutorial


Ask Questions

Ask Question