[UP]


Manual Reference Pages  - tanh (3)

NAME

tanh(3f) - [FORTRAN:INTRINSIC:TRIGONOMETRIC] Hyperbolic tangent function

CONTENTS

Syntax
Description
Arguments
Return Value
Example
Standard
Class
See Also

SYNTAX

x = tanh(x)

DESCRIPTION

tanh(x) computes the hyperbolic tangent of X.

ARGUMENTS

X - The type shall be REAL or COMPLEX.

RETURN VALUE

The return value has same type and kind as X. If X is complex, the imaginary part of the result is in radians. If X is REAL, the return value lies in the range

      -1 <= tanh(x) <= 1.

EXAMPLE

Sample program:

   program demo_tanh
     real(8) :: x = 2.1_8
     x = tanh(x)
   end program demo_tanh

STANDARD

[[FORTRAN 77]] and later, for a complex argument [[Fortran 2008]] or later

CLASS

[[Elemental procedure|Elemental function]]

SEE ALSO

[[atanh]]


tanh (3) March 19, 2019
Generated by manServer 1.08 from be227b0f-eff3-40fd-aab8-67e16e43e421 using man macros.