The sine of a. If a is equal to double.NaN, double.NegativeInfinity, or double.PositiveInfinity, this method returns double.NaN.
The angle, a, must be in radians. Multiply by Math.PI/180 to convert degrees to radians.
Acceptable values of a range from approximately -9223372036854775295 to approximately 9223372036854775295. For values outside of this range, the Math.Sin(double) method returns a unchanged rather than throwing an exception.
The following example demonstrates using the Math.Sin(double) method.
C# Example
using System; public class MathSinExample { public static void Main() { Double d1 = Math.Sin(0); Double d2 = Math.Sin(Math.PI/2.0); Console.WriteLine("Math.Sin(0) returns {0}", d1); Console.WriteLine("Math.Sin(Math.PI/2.0) returns {0}", d2); } }
The output is
Math.Sin(0) returns 0