xieite ::big_int <UInt >::log ()
Defined in header <xieite/math/big_int.hpp>
Estimates the logarithm of a
xieite ::big_int <UInt > {}
of a base. Throws std ::out_of_range {}
if the anti-logarithm is negative, the base is 1
, or the base is negative.Declaration
#0[[nodiscard ]]constexpr xieite ::big_int <UInt >log (const xieite ::big_int <UInt >& base )const ;
#1
[[nodiscard ]]constexpr xieite ::big_int <UInt >log (std ::integral auto base )const ;
Example
Output:int main () {xieite ::dump (xieite ::big_int (1000 ).log (10 ).str ()); }
[View in Compiler Explorer]3