sec
function sec( x ) --> res
Description
Returns the secant of the angle x.
Parameters
- x
-
Angle in radians.
Return Values
- res
-
The secant of the angle.
Code
--ZFUNC-sec-v1 local function sec( x ) --> res return 1 / math.cos( x ) end return sec
Examples
local t = require( "taptest" ) local round = require( "round" ) local sec = require( "sec" ) t( round( sec( 45 ), 7 ), 1.9035944 ) t( round( sec( 30 ), 7 ), 6.4829212 ) t()