필터 지우기
필터 지우기

MAKING SUBJECT OF FOMULAR

조회 수: 9 (최근 30일)
lloyd mukunza
lloyd mukunza 2014년 9월 20일
댓글: Walter Roberson 2018년 12월 17일
HOW DO I MAKE X SUBJECT OF FOMULAR IN THIS EQUATION x = exp(x+y).
I have tried the following code
syms x y
solve('x = exp(x+y)',x)
and this give me *
[sym empty].*
How best can I do it.
  댓글 수: 1
Chibuzo Chukwu
Chibuzo Chukwu 2018년 12월 13일
I am also stoked with a situation of the same form. All out gigs should please look into this kind of problem and suggest a way out.

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

답변 (2개)

Walter Roberson
Walter Roberson 2018년 12월 13일
In older versions of MATLAB,
solve('x = exp(x+y)', 'x')
In more modern versions
syms x y
solve(x == exp(x+y), x)
However, MATLAB is not able to find a solution. A solution exists, and is
-lambertw(-exp(y))
but MATLAB is not strong on Lambert W processing.
  댓글 수: 1
Walter Roberson
Walter Roberson 2018년 12월 17일
Chibuzo Chukwu comments to me
Your contribution has been very useful

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


Chibuzo Chukwu
Chibuzo Chukwu 2018년 12월 13일
Thanks for your response. I have tried to read about the Lambert W function and it has been helpful but can you look at this problem?
There are series of values for x and a and it's required to have a linear plot of a against x in the equation connecting them
ln(x^alpha * a) = c- 2*x*m
To determine values alpha and m from the graph
Is there anyway this can be rearrange to achieve this?
  댓글 수: 15
Walter Roberson
Walter Roberson 2018년 12월 17일
No. If part of your data has a linear fit then it makes no sense to fit a power model to it.
If you want a linear fit then set alpha to 0. That would get ln a on the left side and linear terms on the right leading to aa simple polynomial fit.
Chibuzo Chukwu
Chibuzo Chukwu 2018년 12월 17일
Thanks a lot. Your insight has been very useful and infact you've answered my question very satisfactory. I will get back to you if I find any other obstacle. Thanks a million.

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

카테고리

Help CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by