Clicky
Showing changes from revision #2 to #3:
(追記) Added (追記ここまで) | (削除) Removed (削除ここまで) | (削除) Chan (削除ここまで)(追記) ged (追記ここまで)
tanh(x)
computes the hyperbolic tangent of x
.
FORTRAN 77 and(削除) later (削除ここまで)(追記) later, (追記ここまで)(追記) for (追記ここまで)(追記) a (追記ここまで)(追記) complex (追記ここまで)(追記) argument (追記ここまで)(追記) Fortran 2008 (追記ここまで)(追記) or later (追記ここまで)
(削除) Elemental function (削除ここまで)(追記) Elemental function (追記ここまで)
x = tanh(x)
x = tanh(x)
(追記ここまで)
x
- The type shall be real
(追記) or (追記ここまで)(追記) complex
(追記ここまで). 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
.
program test_tanh
real(8) :: x = 2.1_8
x = tanh(x)
end program test_tanh