Math.Tan Function in VB.NET
What is math.Tan function in VB.NET?
Explanation
Math.Tan Function
Math.Tan in Visual Basic.net 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'.
Syntax:
Math.Tan(Value)
In the above syntax
Value specifies the angle to return the tangent value.
Example:
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))
Console.ReadLine()
End Sub
End Module
Result:
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.