tanh ( x -- y )
Factor documentation > Factor handbook > The language > Numbers > Mathematical functions > Trigonometric and hyperbolic functions
Prev:sinh ( x -- y )
Next:sech ( x -- y )


Vocabulary
math.functions

Inputs and outputs
xa number
ya number


Word description
Hyperbolic tangent.

Definition
IN: math.functions

GENERIC: tanh ( x -- y ) foldable flushable


Methods
USING: kernel math math.functions ;

M: complex tanh [ sinh ] [ cosh ] bi / ;


USING: math math.functions math.libm ;

M: float tanh ftanh ; inline


USING: math math.functions ;

M: real tanh >float tanh ; inline