Learn R Programming

KneeArrower (version 1.0.0)

inverse: Inverse of a function

Description

Inverse of a function

Usage

inverse(f, domain)

Arguments

f

univariate function

domain

domain of f given as (min, max) interval

Value

a function g such that f(x) = y and g(y) = x

Examples

Run this code
# NOT RUN {
expinv <- inverse(exp, c(0,3))
expinv(exp(1))
# }

Run the code above in your browser using DataLab