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?

 Respuesta aceptada

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

1 comentario

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Mathematics en Centro de ayuda y File Exchange.

Productos

Versión

R2022a

Preguntada:

el 20 de Abr. de 2022

Comentada:

el 21 de Abr. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by