Solving factorial equation with integer variables: Empty sym 0-by-1

1 visualización (últimos 30 días)
kyuwon Oh
kyuwon Oh el 13 de Sept. de 2021
Respondida: Alan Stevens el 14 de Sept. de 2021
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?

Respuestas (1)

Alan Stevens
Alan Stevens el 14 de Sept. de 2021
Set x-2 = 659 and y-x = 679 for one solution,
and x-2 = 679 and y-x = 659 for another.

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by