Clicky

Fortran Wiki
tanh (changes)

Skip the Navigation Links | Home Page | All Pages | Recently Revised | Authors | Feeds | Export |

Showing changes from revision #3 to #4: (追記) Added (追記ここまで) | (削除) Removed (削除ここまで) | (削除) Chan (削除ここまで)(追記) ged (追記ここまで)

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 (削除ここまで)(追記) 1tanh(x)1- 1 \leq tanh(x) \leq 1 (追記ここまで).

Example

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

See also

atanh

category: intrinsics

Revised on March 1, 2023 13:13:35 by vmagnin (86.67.213.90) (892 characters / 0.0 pages)
Edit | Back in time (3 revisions) | Hide changes | History | Views: Print | TeX | Source | Linked from: Intrinsic procedures, Fortran 2008, atanh

AltStyle によって変換されたページ (->オリジナル) /