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( "tapered" )
local csc = require( "csc" )
-- util functions
local round = require( "round" )

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

t.done()

Inspired by

See also