Solving non-linear equation including natural logarithm
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi guys, I am trying to solve this eqn for y and I am just waiting, Matlab stays busy for some reason. What can I do? Do you think there is a simple way to do it?
syms a b c x y
eqn = (1/b) * (c-y)^(3/2) == a-x-(1/2)*log(1-y/c)
eqn=rewrite(eqn,'log')
s=solve(eqn,y,'IgnoreAnalyticConstraints',true)
댓글 수: 0
답변 (1개)
Jeremy
2019년 11월 20일
편집: Jeremy
2019년 11월 20일
Most probably, there is no analytical solution for y in terms of (a,b,c,x). You can solve numerically for y at given values of a,b,c,x by using fzero.
댓글 수: 3
Jeremy
2019년 11월 20일
I would solve for x such that
x = @(y) a - (1/b) * (c-y)^(3/2) - (1/2)*log(1-y/c);
and do a regression for x in terms of a,b,c,y?
참고 항목
카테고리
Help Center 및 File Exchange에서 Systems of Nonlinear Equations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!