log(x) (natural log). Plain elemental inline around the
intrinsic; see safe_exp and the module docstring.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in) | :: | x |
elemental function safe_log(x) result(y) !! `log(x)` (natural log). Plain elemental inline around the !! intrinsic; see `safe_exp` and the module docstring. real(wp), intent(in) :: x real(wp) :: y y = log(x) end function safe_log