Solving factorial equation with integer variables: Empty sym 0-by-1
조회 수: 2 (최근 30일)
이전 댓글 표시
I want to solve the equation by MATLAB.
So I have tried
syms x y integer
eqn=gamma(y+1)/(gamma(x-1)*gamma(y-x+1))==gamma(1341)/(gamma(660)*gamma(680));
[xsol,ysol]=solve(eqn,[x y])
but it gives me xsol = Empty sym: 0-by-1, ysol = Empty sym: 0-by-1.
How can I fix it?
댓글 수: 0
답변 (1개)
Alan Stevens
2021년 9월 14일
Set x-2 = 659 and y-x = 679 for one solution,
and x-2 = 679 and y-x = 659 for another.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!