Clicky

Fortran Wiki
tanh (Rev #3, changes)

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

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

Description

tanh(x) computes the hyperbolic tangent of x.

Standard

FORTRAN 77 and(削除) later (削除ここまで)(追記) later, (追記ここまで)(追記) for (追記ここまで)(追記) a (追記ここまで)(追記) complex (追記ここまで)(追記) argument (追記ここまで)(追記) Fortran 2008 (追記ここまで)(追記) or later (追記ここまで)

Class

(削除) Elemental function (削除ここまで)(追記) Elemental function (追記ここまで)

Syntax

(削除)

x = tanh(x)

(削除ここまで)
(追記)
x = tanh(x)
(追記ここまで)

Arguments

  • x - The type shall be real(追記) or (追記ここまで)(追記) complex (追記ここまで).

Return value

The return value(削除) is (削除ここまで)(追記) has (追記ここまで)(削除) of (削除ここまで)(追記) same (追記ここまで) type(追記) and (追記ここまで)(追記) kind (追記ここまで)(追記) as (追記ここまで)(追記) x (追記ここまで)(追記) . If (追記ここまで)(追記) x (追記ここまで)(追記) is complex, the imaginary part of the result is in radians. If (追記ここまで)(追記) x (追記ここまで)(追記) is (追記ここまで)real(削除) (削除ここまで)(追記) , (追記ここまで)(削除) and (削除ここまで)(追記) 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

See also

atanh

category: intrinsics

Revision from April 4, 2016 17:37:44 by Jason Blevins
Forward in time (to current) | Back in time (2 more) | See current | Hide changes | History | Rollback | View: Source | Linked from: Intrinsic procedures, Fortran 2008, atanh

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