second analytical solution of implicit equation
이전 댓글 표시
When I do the command
F = M*exp(-M^2/2)==(2.72498/r)^2*exp(1.5-2*(2.72498/r));
solve(F, M)
it returns only 1 analytical solution of the two. Is there a way to get the expression for the second solution? When the function is plotted implicitly you can see that it goes like the figure.
How to get to an expression for the other branches? I succeeded in plotting the braches seperatly, but I need the expression for further calculation and plotting of other values containing these M and r, composed of solutions of the different branches.

댓글 수: 2
It returns two solutions in r, and one solution in M —
syms M r
F = M*exp(-M^2/2)==(2.72498/r)^2*exp(1.5-2*(2.72498/r));
M_sol = solve(F, M)
r_sol = solve(F, r)
.
renee
2022년 12월 30일
답변 (2개)
This is the same as the solution proposed by Star Strider:
syms M r
EQN = M*exp(-M^2/2)==(2.72498/r)^2*exp(1.5-2*(2.72498/r));
Solution_M =solve(EQN,M,'IgnoreAnalyticConstraints',true)
Solution_M =solve(EQN, r,'IgnoreAnalyticConstraints',true)
I believe you are plotting ‘M’ as a funciton of ‘r’ however it likely does not have an analytic solution. In the lambertw argument, it is a function of
and more generally,
, however I doubt that it is possible to factor it further. A numeric solution is the only option.
syms M r
F = M*exp(-M^2/2)==(2.72498/r)^2*exp(1.5-2*(2.72498/r));
Fc(r,M) = M*exp(-M^2/2) - ((2.72498/r)^2*exp(1.5-2*(2.72498/r)));
M_sol = solve(F, M)
Mr_sol = solve(M_sol,r)
r_sol = solve(F, r)
figure
fsurf(Fc, [0 5 0.01 5])
colormap(turbo)
figure
fimplicit(Fc, [0 5 0.01 5])
colormap(turbo)
xlabel('r')
ylabel('M')
.
카테고리
도움말 센터 및 File Exchange에서 Mathematics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!







