ADVERTISEMENT

ADVERTISEMENT

ADVERTISEMENT

VB.Net program to find the angle for specified tangent value

Here, we are going to learn how to find the angle for specified tangent value in VB.Net?
Submitted by Nidhi, on December 02, 2020

Here, we will find the angle for the specified tangent value and print the angle values for different tangent values.

Program/Source Code:

The source code to find the angle for the specified tangent value is given below. The given program is compiled and executed successfully.

'VB.Net program to find the angle for 
'specified tangent value.

Module Module1

    Sub Main()
        Dim angle As Double = 0

        angle = Math.Atan(2)
        Console.WriteLine("Angle of specified tangent value is: {0}", angle)

        angle = Math.Atan(0.3584)
        Console.WriteLine("Angle of specified tangent value is: {0}", angle)

        angle = Math.Atan(0.0)
        Console.WriteLine("Angle of specified tangent value is: {0}", angle)
    End Sub
    
End Module

Output:

Angle of specified tangent value is: 1.10714871779409
Angle of specified tangent value is: 0.344138428307805
Angle of specified tangent value is: 0
Press any key to continue . . .

Explanation:

In the above program, we created a module Module1 that contains the Main() method. In the Main() method we created a variable angle initialized with 0.

angle = Math.Atan(2)
Console.WriteLine("Angle of specified tangent value is: {0}", angle)

angle = Math.Atan(0.3584)
Console.WriteLine("Angle of specified tangent value is: {0}", angle)

angle = Math.Atan(0.0)
Console.WriteLine("Angle of specified tangent value is: {0}", angle)

In the above code, we find the angle against the specified tangent values and then printed them on the console screen.

VB.Net Basic Programs »



ADVERTISEMENT



ADVERTISEMENT



Comments and Discussions

ADVERTISEMENT

ADVERTISEMENT

ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT

Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates

© https://www.includehelp.com some rights reserved.