VB.Net program to find the angle for specified cosine value
'VB.Net program to find the angle for
'specified cosine value.
Module Module1
Sub Main()
Dim angle As Double= 0
angle = Math.Acos(2)
Console.WriteLine("Angle of specified cosine value is: {0}", angle)
angle = Math.Acos(0.3584)
Console.WriteLine("Angle of specified cosine value is: {0}", angle)
angle = Math.Acos(0.0)
Console.WriteLine("Angle of specified cosine value is: {0}", angle)
End Sub
End Module
Output
Angle of specified cosine value is: NaN
Angle of specified cosine value is: 1.20424285296577
Angle of specified cosine value is: 1.5707963267949
Press any key to continue . . .
Table of Contents