Dofactory.com
Dofactory.com
Earn income with your data and sql skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.

SQL COT Function

COT returns the cotangent in radians of the specified angle.

COT is one of the basic trigonometric functions along with SIN, COS and TAN.

Example

#

This example return the cotangent of the specified angle measured in radians.

SELECT COT(PI()/4) AS '45 degrees',
       COT(PI()/2) AS '90 degrees',
       COT(PI() * 3/4) AS '135 degrees'
       
Result:  1 record
45 degrees 90 degrees 135 degrees
1 6.12323399573677E-17 -1

Note: The 90 degrees value is approaching 0.

Note: PI is a function that returns the value of π (3.14).


Syntax

Syntax of the COT function.

COT(angle)

angle -- a number representing an angle in radians..


You may also like



Last updated on Dec 21, 2023

Earn income with your data and sql skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.