9.256. TANH

9.256 TANH — Hyperbolic tangent function

Description:
TANH(X) computes the hyperbolic tangent of X.
Standard:
Fortran 77 and later, for a complex argument Fortran 2008 or later
Class:
Elemental function
Syntax:
X = TANH(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 \leq tanh(x) \leq 1 .
Example:
program test_tanh
  real(8) :: x = 2.1_8
  x = tanh(x)
end program test_tanh
Specific names:
Name Argument Return type Standard
TANH(X) REAL(4) X REAL(4) Fortran 95 and later
DTANH(X) REAL(8) X REAL(8) Fortran 95 and later
See also:
ATANH

© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-6.3.0/gfortran/TANH.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部