MATLAB Answers

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

4 ビュー (過去 30 日間)
kyuwon Oh
kyuwon Oh 2021 年 9 月 13 日
回答済み: Alan Stevens 2021 年 9 月 14 日
I want to solve the equation by MATLAB.
So I have tried
syms x y integer
[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?

回答 (1 件)

Alan Stevens
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.




Community Treasure Hunt

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

Start Hunting!

Translated by