WPILibC++ 2023.4.3
log10.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  internal
 

Functions

template<typename T >
constexpr return_t< T > internal::log10_check (const T x) noexcept
 
template<typename T >
constexpr return_t< T > log10 (const T x) noexcept
 Compile-time common logarithm function. More...
 

Function Documentation

◆ log10()

template<typename T >
constexpr return_t< T > log10 ( const T  x)
constexprnoexcept

Compile-time common logarithm function.

Parameters
xa real-valued input.
Returns
\( \log_{10}(x) \) using

\[ \log_{10}(x) = \frac{\log_e(x)}{\log_e(10)} \]