Calculate coshmm(x) = (cosh(x) - 1 - x * x / 2) / (x * x)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real, | intent(in) | :: | x |
elemental real function coshmm_fun(x)
real, intent(in) :: x
if (is_zero(x)) then
coshmm_fun = 0
else
coshmm_fun = (cosh(x) - 1 - x*x/2) / (x*x)
end if
end function coshmm_fun