exponential and polynomial equation
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
mostafa Ahmed
le 23 Avr 2018
Commenté : Walter Roberson
le 24 Avr 2018
need to to solve the equation
.5*Rut(U(i)-deltau(i))^2+S+1.5*Rut*deltau(i)^2 == .5*Rut(V(i)-U(i))^2+Yp;
where
deltau=Uf0*(exp(-((U(i)-Uf0)/(3*Uf0)).^2));
for U using ''solve'' function in for loop,, can anyone help plz.
2 commentaires
Walter Roberson
le 24 Avr 2018
.. then do that ?
But doing that will not permit you to use solve() to find a closed form solution. solve() might possibly switch to finding a numeric solution; if so then you should just use vpasolve() instead.
Réponse acceptée
John D'Errico
le 23 Avr 2018
Don't use solve. If all the other variables are known, then just use fzero.
Is Rut a variable? Or a function? If you think that this does a multiplication:
Rut(U(i)-deltau(i))^2
you are wrong. MATLAB requires an * in there.
0 commentaires
Plus de réponses (1)
Walter Roberson
le 23 Avr 2018
solve() is intended for closed form solutions. You will not be able to find a closed form solution to that because of the exp() term.
If you have the values of all of the variables except for U then you can use vpasolve to get one solution. There are probably a few different solutions involving complex-valued numbers; I am not sure at the moment if there could be two real-valued solutions.
0 commentaires
Voir également
Catégories
En savoir plus sur Polynomials dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!