Mono Class Library: System.Math Overview | Members

System.Math.Cos Method

Returns the cosine of the specified double that represents an angle.

public static double Cos (double d)

Parameters

d
A double that represents an angle measured in radians.

Returns

A double containing the value of the cosine of d. If d is equal to double.NaN, double.NegativeInfinity, or double.PositiveInfinity, returns double.NaN.

Remarks

Note: Multiply by pi/180 to convert degrees to radians.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0