FUNCTIONS CORE

SinH()

Calculate the hyperbolic sine

Syntax

Signature
SinH( nValue ) --> nHyperbolicSine

Arguments

nValue

Example

SinH.prg
PROCEDURE Main()

   Check( 'SinH( 0 )                ', SinH( 0 ), 0 )
   Check( 'Round( SinH( 1 ), 6 )    ', Round( SinH( 1 ), 6 ), 1.175201 )
   Check( 'SinH( -1 ) == -SinH( 1 ) ', SinH( -1 ) == -SinH( 1 ), .T. )

RETURN

STATIC PROCEDURE Check( cTitle, xResult, xExpected )

   QOut( cTitle + IIF( xResult == xExpected, "OK", "ERROR" ) )

RETURN

Output

SinH( 0 )                OK
Round( SinH( 1 ), 6 )    OK
SinH( -1 ) == -SinH( 1 ) OK