This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

finverse

Functional inverse

Syntax

g = finverse(f)
g = finverse(f,var)

Description

g = finverse(f) returns the inverse of function f, such that f(g(x)) = x. If f contains more than one variable, use the next syntax to specify the independent variable.

example

g = finverse(f,var) uses the symbolic variable var as the independent variable, such that f(g(var)) = var.

Examples

collapse all

Compute functional inverse for this trigonometric function.

syms x
f(x) = 1/tan(x);
g = finverse(f)
g(x) =
atan(1/x)

Compute functional inverse for this exponential function by specifying the independent variable.

syms u v
finverse(exp(u-2*v), u)
ans =
2*v + log(u)

Input Arguments

collapse all

Input, specified as a symbolic expression or function.

Independent variable, specified as a symbolic variable.

Tips

  • finverse does not issue a warning when the inverse is not unique.

See Also

|

Introduced before R2006a