The function to approximate the inverse of. It must be monotonically increasing and satisfy f(n) >= n
for all n >= 0
.
The value to approximate the inverse at.
The mode/mean method to use. See MeanMode
The amount of iterations to perform. Defaults to DEFAULT_ITERATIONS.
The tolerance to approximate the inverse with. Defaults to DEFAULT_TOLERANCE.
The lower bound to start the search from. Defaults to 1
.
The upper bound to start the search from. Defaults to n
.
Whether to round the bound and search only through integers. Defaults to false
.
An object containing the approximate inverse value "value"
(defaults to the lower bound), the lower bound "lowerBound"
, and the upper bound "upperBound"
, all as Decimal instances.
Use Decimal.increasingInverse instead.
Approximates the inverse of a function at
n
using the bisection / binary search method.