Math.Cos Returns the cosine of the specified angle.
using System; class SinCos { public static void Main() { UseSineCosine(15.0); } static void UseSineCosine(double degrees) { double angle = Math.PI * degrees / 180.0; double sinAngle = Math.Sin(angle); double cosAngle = Math.Cos(angle); Console.WriteLine(Math.Sin(angle)); Console.WriteLine(Math.Cos(angle) ); } }