CSC()

Documentation

VoltDB Home » Documentation » Using VoltDB

CSC()

CSC() — Returns the cosecant of an angle specified in radians.

Synopsis

CSC( {numeric-expression} )

Description

The CSC() function returns the cosecant 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;