Expand description
Contains an implementation of the bisection method for computing roots, but working with integers only.
Functionsยง
- bisect_
floor - Finds some integer
left <= n < rightsuch thatf(n) <= 0andf(n + 1) > 0, given thatf(left) <= 0andf(right) > 0. - find_
root_ floor - Given a function
fwithlim_{x -> -inf} f(x) = -infandlim_{x -> inf} f(x) = inf, finds some integernsuch thatf(n) <= 0andf(n + 1) > 0. - root_
floor - Computes the largest integer
xsuch thatx^root <= n, wherenis a positive integer.