How to find inverse of a self-written function in matlab?

4 views (last 30 days)
I want to input x = acosh(2/h) - sqrt(4-h^2) and I require its inverse in the form, h = f(x).

Answers (1)

Rik
Rik on 22 Feb 2018
The first hit in my favorite internet search engine was the finverse function:
syms h
x(h) = acosh(2/h) - sqrt(4-h^2);
g = finverse(x);
Unfortunately, this results in a warning that Matlab is unable to find the functional inverse. Wolfram Alpha can't do it either.
So unless and until someone shows that it does, I'm going to assume a functional inverse of your function does not exist.
  1 Comment
Torsten
Torsten on 22 Feb 2018
The function has an inverse for x in (0,2], but it can't be expressed in closed form, I guess.
Best wishes
Torsten.

Sign in to comment.

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!