COT()

Documentation

VoltDB Home » Documentation » Using VoltDB

COT()

COT() — Returns the cotangent of an angle specified in radians.

Synopsis

COT( {numeric-expression} )

Description

The COT() function returns the cotangent of a specified angle as a FLOAT value. The angle must be specified in radians as a numeric expression.

Examples

The following example returns the secant, cosecant, and cotangent of angles from 0 to 90 degrees (where the angle is specified in radians).

SELECT SEC(radians), CSC(radians), COT(radians) 
     FROM triangles WHERE radians >= 0 AND radians <= PI()/2;