Solving equation with two solutions
11 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I would like to solve for example the equation m*exp(-x m^2/2)=0.2. When you plot this function it should become clear that this has two real solutions, but MATLAB only gives the smallest solution, whereas I need the larger one. Can anyone help me to get the solution for this? I tried adding the inequality M>1 for obtaining the larger value but this has unfortunatly no result.
syms r M;
assume(M,'real')
F = [M*exp(-M^2/2)==0.2, M>1];
solve(F, M)
Thanks a lot!
0 Commenti
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!