A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z  special characters  sybase-tech-blog


Category: ASE: Functions: Mathematical Functions

cot()

The mathematical function cot() returns the cotangent of the parameter "number" in radian measure.

Syntax of the mathematical function cot()

    cot(number)
    

The parameter "number" of the mathematical function cot()

number
The parameter "number" is a placeholder for column names, variables or constants, which have to be available as float, real, double precision datatypes. Additionally, the parameter recognises every other datatype which can be converted into any of the required datatypes using implicit conversion.

Example for the mathematical function cot()

    select cot(45)
go
-----
0.617370

Returns the cotangent in radian measure.

    select cot(radians(45.00))
go
-----
1.000000

Returns the cotangent.

See also:

ASE T-SQL - Aggregate Functions,
Mathematical Functions,
abs(),
acos(),
asin(),
atan(),
atn2(),
ceiling(),
cos(),
degrees(),
exp(),
floor(),
log(),
log10(),
pi(),
power(),
radians(),
rand(),
round(),
sign(),
sin(),
sqrt(),
tan().