SEC()

Documentation

VoltDB Home » Documentation » Using VoltDB

SEC()

SEC() — Returns the secant of an angle specified in radians.

Synopsis

SEC( {numeric-expression} )

Description

The SEC() function returns the secant 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;