tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
log1p.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_CMATH_LOG1P_HPP
4#define TETL_CMATH_LOG1P_HPP
5
6#include <etl/_3rd_party/gcem/gcem.hpp>
8
9namespace etl {
10
13
17[[nodiscard]] constexpr auto log1p(float v) noexcept -> float { return etl::detail::gcem::log1p(v); }
18[[nodiscard]] constexpr auto log1pf(float v) noexcept -> float { return etl::detail::gcem::log1p(v); }
19[[nodiscard]] constexpr auto log1p(double v) noexcept -> double { return etl::detail::gcem::log1p(v); }
20[[nodiscard]] constexpr auto log1p(long double v) noexcept -> long double { return etl::detail::gcem::log1p(v); }
21[[nodiscard]] constexpr auto log1pl(long double v) noexcept -> long double { return etl::detail::gcem::log1p(v); }
22[[nodiscard]] constexpr auto log1p(integral auto arg) noexcept -> double
23{
24 return etl::detail::gcem::log1p(double(arg));
25}
26
28
29} // namespace etl
30
31#endif // TETL_CMATH_LOG1P_HPP
The concept integral<T> is satisfied if and only if T is an integral type.
Definition integral.hpp:13
constexpr auto log1pf(float v) noexcept -> float
Computes the natural (base e) logarithm of 1+arg. This function is more precise than the expression e...
Definition log1p.hpp:18
constexpr auto log1pl(long double v) noexcept -> long double
Computes the natural (base e) logarithm of 1+arg. This function is more precise than the expression e...
Definition log1p.hpp:21
constexpr auto log1p(float v) noexcept -> float
Computes the natural (base e) logarithm of 1+arg. This function is more precise than the expression e...
Definition log1p.hpp:17
constexpr auto arg(complex< T > const &z) noexcept -> T
Definition arg.hpp:15
Definition adjacent_find.hpp:8