SqlFunctions.Cos Method

Definition

Returns the trigonometric cosine of the specified angle, in radians.

Overloads

Cos(Nullable<Decimal>)

Returns the trigonometric cosine of the specified angle, in radians, in the specified expression.

Cos(Nullable<Double>)

Returns the trigonometric cosine of the specified angle, in radians, in the specified expression.

Remarks

You cannot call this function directly. This function can only appear within a LINQ to Entities query.

This function is translated to a corresponding function in the database. For information about the corresponding SQL Server function, see COS (Transact-SQL).

Cos(Nullable<Decimal>)

Returns the trigonometric cosine of the specified angle, in radians, in the specified expression.

public:
 static Nullable<double> Cos(Nullable<System::Decimal> arg);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "COS")]
public static double? Cos (decimal? arg);
[<System.Data.Objects.DataClasses.EdmFunction("SqlServer", "COS")>]
static member Cos : Nullable<decimal> -> Nullable<double>
Public Shared Function Cos (arg As Nullable(Of Decimal)) As Nullable(Of Double)

Parameters

arg
Nullable<Decimal>

An angle, measured in radians.

Returns

The trigonometric cosine of the specified angle.

Attributes

Remarks

You cannot call this function directly. This function can only appear within a LINQ to Entities query.

This function is translated to a corresponding function in the database. For information about the corresponding SQL Server function, see COS (Transact-SQL).

Applies to

Cos(Nullable<Double>)

Returns the trigonometric cosine of the specified angle, in radians, in the specified expression.

public:
 static Nullable<double> Cos(Nullable<double> arg);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "COS")]
public static double? Cos (double? arg);
[<System.Data.Objects.DataClasses.EdmFunction("SqlServer", "COS")>]
static member Cos : Nullable<double> -> Nullable<double>
Public Shared Function Cos (arg As Nullable(Of Double)) As Nullable(Of Double)

Parameters

arg
Nullable<Double>

An angle, measured in radians.

Returns

The trigonometric cosine of the specified angle.

Attributes

Remarks

You cannot call this function directly. This function can only appear within a LINQ to Entities query.

This function is translated to a corresponding function in the database. For information about the corresponding SQL Server function, see COS (Transact-SQL).

Applies to