MATLAB can't resolve equation?

3 vues (au cours des 30 derniers jours)
Eneru Y
Eneru Y le 14 Mar 2016
Modifié(e) : John D'Errico le 14 Mar 2016
Hello guys, following equation:
x = (a * (b + x)) / b
It's not resolved by matlab with solve() function, but it's resolved correctly on wolframalpha.com website. Why? Thanks!
  1 commentaire
John D'Errico
John D'Errico le 14 Mar 2016
Modifié(e) : John D'Errico le 14 Mar 2016
It IS solved properly using solve. As long as you use solve properly.

Connectez-vous pour commenter.

Réponses (1)

Star Strider
Star Strider le 14 Mar 2016
This works for me (in R2016a):
syms a b x
x = solve(x == (a * (b + x)) / b)
x =
-(a*b)/(a - b)

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by