Math.Sin Function in VB.NET

What is math.Sin function in VB.NET?


Math.Sin Function

Math.Sin in VB.NET is a mathematical function, used to find the Sine value for the given angle. This function returns NaN if the given angle is positive or negative infinity value or its not an number.


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

Module Module1
Sub Main()
Console.WriteLine("The Sine value of 1 is::" & Math.Sin(1))
Console.WriteLine("The Sine value of 2 is::" & Math.Sin(2))
End Sub
End Module

The Sine Value of 1 is::0.841470984807897
The Sine value of 2 is::0.909297426825682

In the above example, the Math.Sin mathematical function is used to find the Sine value for the angles 1,2.

Visual Basic Tutorial

Ask Questions

Ask Question