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?

 Réponse acceptée

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

1 commentaire

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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Mathematics dans Centre d'aide et File Exchange

Produits

Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by