MATLAB Answers

MATLAB can't resolve equation?

5 views (last 30 days)
Eneru Y
Eneru Y on 14 Mar 2016
Edited: John D'Errico on 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 Comment

John D'Errico
John D'Errico on 14 Mar 2016
It IS solved properly using solve. As long as you use solve properly.

Sign in to comment.

Answers (1)

Star Strider
Star Strider on 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)

  0 Comments

Sign in to comment.

Products

Community Treasure Hunt

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

Start Hunting!