Symbolic Math Toolbox    
finverse

Functional inverse.

Syntax

Description
g = finverse(f) returns the functional inverse of f. f is a scalar sym representing a function of one symbolic variable, say x. Then g is a scalar sym that satisfies g(f(x)) = x. That is, finverse(f) returns f -1, provided f -1 exists.

g = finverse(f,v) uses the symbolic variable v, where v is a sym, as the independent variable. Then g is a scalar sym that satisfies g(f(v)) = v. Use this form when f contains more than one symbolic variable.

Examples
finverse(1/tan(x)) returns

finverse(exp(u-2*v),u) returns

See Also
compose, syms


 findsym fortran