MATLAB can't resolve equation?

3 Ansichten (letzte 30 Tage)
Eneru Y
Eneru Y am 14 Mär. 2016
Bearbeitet: John D'Errico am 14 Mär. 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 Kommentar
John D'Errico
John D'Errico am 14 Mär. 2016
Bearbeitet: John D'Errico am 14 Mär. 2016
It IS solved properly using solve. As long as you use solve properly.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Star Strider
Star Strider am 14 Mär. 2016
This works for me (in R2016a):
syms a b x
x = solve(x == (a * (b + x)) / b)
x =
-(a*b)/(a - b)

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by