필터 지우기
필터 지우기

Problems using the equality indicator. Matlab returns 0 when I check the equality of 2 terms. At the same time it returns 1 for the ratio of the same terms.

조회 수: 1 (최근 30일)
mu1 =
(k^psi*(b - 1)*(psi - 1))/(y2 + k^psi - b*k^psi - b*psi*y2)
>> mu2
mu2 =
-(psi - 1)/((y2*(b*psi - 1))/(k^psi*(b - 1)) + 1)
>> simplify(mu1)==simplify(mu2)
ans =
0
>> simplify(mu1/mu2)
ans =
1

채택된 답변

Andrei Bobrov
Andrei Bobrov 2012년 2월 28일
factor(mu1) == factor(mu2)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by