View source: R/utils-invert_bijection.R
inverse_with_uniroot | R Documentation |
Numerically evaluate the inverse of a function at a specific point
inverse_with_uniroot(
f = f,
y,
min_x = 0,
max_x = 1,
min_y = f(min_x),
max_y = f(max_x)
)
f |
(function) the function to be inverted; must be continuous and increasing |
y |
(scalar, double) the f(x)=y value in which to evaluate the inverse |
min_x |
(scalar, double) the min of the domain of f() |
max_x |
(scalar, double) the max of the domain of f() |
min_y |
(scalar, double) the min in the range of f() |
max_y |
(scalar, double) the max in the range of f() |
(scalar, double) vector of x=f^(-1)(y): the inverted value
inverse_with_uniroot(f = function(x) {
2 * x
}, y = 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.