InverseFunctions.jl

InverseFunctionsModule
InverseFunctions

Lightweight package that defines an interface to invert functions.

source

This package defines the function inverse. inverse(f) returns the inverse function of a function f, so that inverse(f)(f(x)) ≈ x.

inverse supports mapped/broadcasted functions (via Base.Broadcast.BroadcastFunction or Base.Fix1) and function composition.

Implementations of inverse(f) for identity, inv, adjoint and transpose as well as for exp, log, exp2, log2, exp10, log10, expm1, log1p and sqrt are included.