Problems with y==x: Division Isolation

I was trying to simplify a transfer function using "isolate" when I noticed that the function fails to perform division in certain cases.
To illustrate such difficulty, I wrote two lines below:
syms x y
isolate(y==x, y/x)
Instead of returning the desired result of y/x == 1, the program instead throws the following error:
Error using sym/isolate
Unable to isolate 'y/x' because the equation has no solution.
I've additionally tried specifying that x is nonzero/positive to no avail.
Is there any reason why "isolate" struggles with this, and is there any other way to compute the desired result y/x==1?

 Accepted Answer

syms x y yOverx
eqn = y == x
eqn = 
eqn2 = subs(eqn, y, yOverx * x)
eqn2 = 
isolate(eqn2, yOverx)
ans = 

1 Comment

Thanks for your answer! I still don't see why isolate can't perform division though...

Sign in to comment.

More Answers (0)

Categories

Find more on Mathematics in Help Center and File Exchange

Products

Release

R2022a

Community Treasure Hunt

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

Start Hunting!