C#NumberMath.Cos

Returns the cosine of the specified angle.

문법

Math.Cos(a)

예제

아래 값을 입력하면 예제에 즉시 반영됩니다.

Console
WriteLine
Math
Console.WriteLine(Math.Cos(0));          // 1
Console.WriteLine(Math.Cos(Math.PI));    // -1