Math.Tan Function in VB.NET

What is math.Tan function in VB.NET?


Math.Tan Function

Math.Tan in Visual is a mathematical function that is used to find the tangent value for the given angle. If the given angle is positive, negative infinity or Nan, the function returns 'NaN'.


In the above syntax Value specifies the angle to return the tangent value.

Module Module1
Sub Main()
Console.WriteLine("The tangent value of 90 degrees
:" & Math.Tan(90))
Console.WriteLine("The tangent value of 45 degrees
:" & Math.Tan(45))
End Sub
End Module

The tangent value of 90 degrees:: -1.99520041220824
The tangent value of 45 degrees::1.61977519054386

In the above example, the Math.Tan mathematical function is used to get the tangent value of '90','45' degrees.

Visual Basic Tutorial

Ask Questions

Ask Question