csc

function csc( x ) --> res

Description

Returns the cosecant of x.

Parameters

x

An angle in radians.

Return Values

res

The cosecant of x.

Code

--ZFUNC-csc-v1
local function csc( x ) --> res
   return 1 / math.sin( x )
end

return csc

Examples

local t = require( "taptest" )
local csc = require( "csc" )
local round = require( "round" )

t( round( csc( 15 ), 7 ), 1.5377806 )

t()

Inspired by

See also