Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<cmath>
- template<typename tmp>
- inline double log_b(tmp b, tmp p)
- {
- return log2(p) / log2(b);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement