MathObject.cos(Double) 方法

定义

计算指定角度的余弦值。Calculates the cosine of the specified angle.

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 static double cos(double x);
[Microsoft.JScript.JSFunction((Microsoft.JScript.JSFunctionAttributeEnum) 0, Microsoft.JScript.JSBuiltin.Math_cos)]
public static double cos (double x);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.None, Microsoft.JScript.JSBuiltin.Math_cos)]
public static double cos (double x);
[<Microsoft.JScript.JSFunction((Microsoft.JScript.JSFunctionAttributeEnum) 0, Microsoft.JScript.JSBuiltin.Math_cos)>]
static member cos : double -> double
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.None, Microsoft.JScript.JSBuiltin.Math_cos)>]
static member cos : double -> double
Public Shared Function cos (x As Double) As Double

参数

x
Double

以弧度计量的角度。An angle, measured in radians.

返回

Double

x 的余弦值。The cosine of x.

属性

适用于

另请参阅