Unable to find explicit solution

조회 수: 17 (최근 30일)
Tiku
Tiku 2021년 4월 1일
댓글: Tiku 2021년 4월 4일
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
Matt J
Matt J 2021년 4월 1일
It seems very plausible to me that an explicit solution does not exist. Do you have reason to think otherwise?
Tiku
Tiku 2021년 4월 1일
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?

댓글을 달려면 로그인하십시오.

채택된 답변

Matt J
Matt J 2021년 4월 1일
You can use fimplicit.
  댓글 수: 9
Matt J
Matt J 2021년 4월 2일
We've no reason to trust the paper more than Matlab...
Tiku
Tiku 2021년 4월 4일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Equation Solving에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by