the function 'solve' doesn't give all the solutions.
Mostra commenti meno recenti
% this does not give all the solutions
syms u;
solve(1-0.99-(u+1)*exp(-u));
double(ans)
see the short 3-line code there, try it out.
The solutions should be u1=-0.996308, and u2=6.63835
But this code only gives me u1, and mentions nothing about u2.
Can any one tells me why or which function should I use to get all the answers.
Thanks!
2 Commenti
Roger Stafford
il 9 Ott 2013
My very ancient version of 'solve' gives both your solutions. I don't know why your version should give only one of them.
Walter Roberson
il 9 Ott 2013
I have noticed the MuPAD's solve() seems to have difficulty in finding solutions involving LambertW.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Code Performance in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
