필터 지우기
필터 지우기

simple inequality check fails - why?

조회 수: 2 (최근 30일)
L. C.
L. C. 2012년 6월 27일
답변: timo 2015년 1월 2일
Hi,
I have the simple inequality check for testing purposes in MuPad:
assume(0<x<1)
assumeAlso(0<y<1)
assumeAlso(A>0)
is(1/(1-x) >=1/(1-x*y))
is(A/(1-x) >=A/(1-x*y))
The first check correctly evaluates to TRUE, but the second returns UNKNOWN, however it is obviously true. Am I doing something wrong, or I have reached the limitation of the tool?

답변 (3개)

Tom
Tom 2012년 6월 27일
You have to split up the comparisons: e.g.:
x > 0 & x < 1
  댓글 수: 1
L. C.
L. C. 2012년 6월 28일
Thanks. I tried and nothing has changed. Other ideas? I also tried to introduce an upper bound on A as well to avoid possible mess with infinity, but the result is just the same.

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


Radu Trimbitas
Radu Trimbitas 2014년 9월 10일
Your code works works correctly in MATLAB 2014a.

timo
timo 2015년 1월 2일
For me evaluates to:
TRUE TRUE
in mupad for Symbolic Math Toolbox Version 6.1 (R2014b)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by