tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
log10.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_COMPLEX_LOG10_HPP
4#define TETL_COMPLEX_LOG10_HPP
5
8
9namespace etl {
10
12template <typename T>
13[[nodiscard]] constexpr auto log10(complex<T> const& z) noexcept -> complex<T>
14{
15 return etl::log(z) / etl::log(T(10));
16}
17
18} // namespace etl
19
20#endif // TETL_COMPLEX_LOG10_HPP
constexpr auto log(float v) noexcept -> float
Computes the natural (base e) logarithm of arg.
Definition log.hpp:44
constexpr auto log10(float arg) noexcept -> float
Computes the binary (base-10) logarithm of arg.
Definition log10.hpp:44
Definition adjacent_find.hpp:8
A complex number.
Definition complex.hpp:19