VB.Net Program to Find the Angle for Specified Cosine Value

You are currently viewing VB.Net Program to Find the Angle for Specified Cosine Value

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 . . .

Ranjith Kumar

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Diksha. Here, I post about programming to help developers.

Leave a Reply