xte::big_int<T>::log()

Defined in header <xte/math/big_int.hpp>


Definition

[[nodiscard]] constexpr xte::big_int<T> log(const xte::big_int<T>& base) const noexcept(false);
Computes the logarithm of a big-integer in a given base. May throw if allocation fails, the anti-logarithm is negative, the base is one, or the base is negative.



Example

static_assert(xte::big_int(125).log(5) == 3);
[View in Compiler Explorer]