Functional inverse.
Syntax
g = finverse(f)
g = finverse(f,u)
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
atan(1/x)
finverse(exp(u-2*v),u) returns
2*v+log(u)
See Also
compose, syms
[ Previous | Help Desk | Next ]