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!







