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( "taptest" )
local round = require( "round" )
local sinh = require( "sinh" )

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

t()

See also