Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
logarithm.hpp File Reference
#include <cerrno>
#include <cmath>
#include <limits>
#include <type_traits>
#include <universal/number/faithful/core.hpp>
#include <universal/number/faithful/math/constants.hpp>
#include <universal/number/faithful/math/functions/exponent.hpp>

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal
namespace  sw::universal::faithful_detail

Functions

template<typename Real>
faithful< Real > sw::universal::faithful_detail::two_atanh (const faithful< Real > &s)
template<typename Real>
faithful< Real > sw::universal::faithful_detail::log_centered (const faithful< Real > &b)
template<typename Real>
faithful< Real > sw::universal::faithful_detail::center (const faithful< Real > &x, int &k)
template<typename Real>
faithful< Real > sw::universal::faithful_detail::log_domain_error ()
template<typename Real>
bool sw::universal::faithful_detail::log_special (const faithful< Real > &x, faithful< Real > &r)
template<typename FloatingPointType>
requires std::is_floating_point_v<FloatingPointType>
faithful< FloatingPointType > sw::universal::log (const faithful< FloatingPointType > &x)
template<typename FloatingPointType>
requires std::is_floating_point_v<FloatingPointType>
faithful< FloatingPointType > sw::universal::log2 (const faithful< FloatingPointType > &x)
template<typename FloatingPointType>
requires std::is_floating_point_v<FloatingPointType>
faithful< FloatingPointType > sw::universal::log10 (const faithful< FloatingPointType > &x)
template<typename FloatingPointType>
requires std::is_floating_point_v<FloatingPointType>
faithful< FloatingPointType > sw::universal::log1p (const faithful< FloatingPointType > &x)