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?

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 20 Apr. 2022

0 Stimmen

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

1 Kommentar

James Chan
James Chan am 21 Apr. 2022
Thanks for your answer! I still don't see why isolate can't perform division though...

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Mathematics finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by