xte ::big_int <T >::log ()
Defined in header <xte/math/big_int.hpp> Definition
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.[[nodiscard ]]constexpr xte ::big_int <T >log (const xte ::big_int <T >& base )const noexcept (false );
Example
[View in Compiler Explorer]static_assert (xte ::big_int (125 ).log (5 ) ==3 );