sinh

function sinh( x ) --> res

Description

Returns the hyperbolic sine of x.

Parameters

x

An angle in radians.

Return Values

res

The hyperbolic sine of x.

Code

--ZFUNC-sinh-v1
local function sinh( x ) --> res
   return ( math.exp( x ) - math.exp( -x ) ) / 2
end

return sinh

Examples

local t = require( "tapered" )
local sinh = require( "sinh" )
-- util functions
local round = require( "round" )

t.is( 0.1010491, round( 2.868 * sinh( 0.0342 * 1.03 ), 7 ) )

t.done()

See also