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?

 채택된 답변

Walter Roberson
Walter Roberson 2022년 4월 20일

0 개 추천

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

댓글 수: 1

James Chan
James Chan 2022년 4월 21일
Thanks for your answer! I still don't see why isolate can't perform division though...

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Mathematics에 대해 자세히 알아보기

제품

릴리스

R2022a

질문:

2022년 4월 20일

댓글:

2022년 4월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by