SYMBOL OF AN EXPRESSION SATISFYING INEQUALITIES

조회 수: 1 (최근 30일)
idriskameni
idriskameni 2019년 3월 5일
답변: Walter Roberson 2019년 3월 5일
I would like to check if
2/(d + g + 2*r + 1) - 4 >=0
or not.
But I would like to know it when r,g,d satisfy
  1. r+g-d>=0
  2. nchoosek(r+2,2) >= 1+2*d-g
  3. g-(r+1)*(r+g-d)-(nchoosek(r+2,2)-2*d+g)>=0
And moreover, the value I get here
answer = inputdlg('Enter the value of N in the formula',...
'Sample', [1 50]);
N = str2num(answer{1,1});
I would also like to assume that
  1. N=nchoosek(r+2,2) -2*d+g
Does anyone knows how can I see which sign has my expression
assuming these 4 things I have mentioned above?

채택된 답변

Walter Roberson
Walter Roberson 2019년 3월 5일
No, that test is not always true under those conditions . nchoosek is not defined for negative or fractional inputs but the test you want obviously fails if you constrain to nonnegative integers so we must assume that your variables are over the reals rather than nonnegative integers .

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by