How to solve for a variable in an exponential equation

조회 수: 3 (최근 30일)
Alice Faisal
Alice Faisal 2018년 7월 19일
댓글: Walter Roberson 2018년 7월 20일
I want to solve this function for rs.. I used this code
syms ra rb rs Vr
Eq1 = Vr == exp((-pi*ra)/rs)+exp((-pi*rb)/rs);
t_sol = solve(Eq1, rs)
but I am getting an empty sym can anyone help me it's urgent

답변 (1개)

Walter Roberson
Walter Roberson 2018년 7월 19일
There is no closed form solution for that.
In Maple notation,
rs := -Pi * rb / RootOf(-exp(_Z)+Vr-exp(ra*_Z/rb))
Here, RootOf(-exp(_Z)+Vr-exp(ra*_Z/rb)) stands in for the set of values, _Z, such that the expression inside RootOf() becomes zero -- the roots of the equation. However, there is no closed form expression to derive that set.
  댓글 수: 5
Alice Faisal
Alice Faisal 2018년 7월 19일
Yes this is the correct answer, how did you get it using matlab? Because I need to try other vales for ra which is 2.30 and rb =6.89 Thank you so much in advance
Walter Roberson
Walter Roberson 2018년 7월 20일
Assuming you mean 2.30E6 and 6.89E6 then 1.8887251678153105468716736113549*10^7
I used a different package, but I did the equivalent of using vpasolve() with an initial value of rs = 500000000

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

카테고리

Help CenterFile Exchange에서 Numeric Solvers에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by