Skip to main content

CSC

Description

Returns the cosecant of x, where x is the value in radians, only input and output are supported as double. Input null value will return null value.

Syntax

CSC(<x>)

Parameters

ParameterDescription
<x>The value for which the cosecant is to be calculated

Return Value

Returns a Double type value means the cosecant of x.

Example

select csc(1),csc(2),csc(1000);
+--------------------+--------------------+------------------+
| csc(1) | csc(2) | csc(1000) |
+--------------------+--------------------+------------------+
| 1.1883951057781212 | 1.0997501702946164 | 1.20936599707935 |
+--------------------+--------------------+------------------+

Input null value.

select csc(null);
+--------------------+
| csc(null) |
+--------------------+
| NULL |
+--------------------+