Unable to find explicit solution

2 views (last 30 days)
Tiku
Tiku on 1 Apr 2021
Commented: Tiku on 4 Apr 2021
Matlab says "Unable to find explicit solution" when trying to solve following non linear equation
-log(y) = psi(1/2+ x/y) - psi(1/2)
Here psi is digamma function
What is wrong with my code, below?
I am using matlab version R2021a
syms x y
eqn = psi(1/2 + x/y)- psi(1/2)+ log(y)==0;
soly = solve(eqn,y)
Warning:
Unable to find explicit solution. For options, see help.
> In sym/solve (line 317)
soly =
Empty sym: 0-by-1
  2 Comments
Matt J
Matt J on 1 Apr 2021
It seems very plausible to me that an explicit solution does not exist. Do you have reason to think otherwise?
Tiku
Tiku on 1 Apr 2021
Thank you for the reply.
I see explicit solution doesn't exist.
That means in order to plot y vs x I should assigned the value of x and solve for y right?

Sign in to comment.

Accepted Answer

Matt J
Matt J on 1 Apr 2021
You can use fimplicit.
  9 Comments
Matt J
Matt J on 2 Apr 2021
We've no reason to trust the paper more than Matlab...
Tiku
Tiku on 4 Apr 2021
I totally agree Matlab calulation is right. Actually after the plot I have to use some physics to ignore certain parts of the plot so at this stage both Matlab and paper is right.
So I really apppreciate your help and thank you.

Sign in to comment.

More Answers (0)

Categories

Find more on Special Functions in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!